Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(*): allow to configure machine externally #2465

Closed
wants to merge 1 commit into from

Conversation

cschroeter
Copy link
Member

@cschroeter cschroeter commented May 13, 2024

import { Avatar, useAvatar } from '@ark-ui/react'

export const External = () => {
  const api = useAvatar({ onStatusChange: (e) => console.log('status changed', e) })

  return (
    <Avatar.RootProvider value={api}>
      <Avatar.Fallback>PA</Avatar.Fallback>
      <Avatar.Image src="https://i.pravatar.cc/300" alt="avatar" />
    </Avatar.RootProvider>
  )
}

Copy link

vercel bot commented May 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ark-docs ✅ Ready (Inspect) Visit Preview May 13, 2024 8:28pm

@cschroeter cschroeter marked this pull request as draft May 14, 2024 16:21
@cschroeter
Copy link
Member Author

Closing in favour of #2526

@cschroeter cschroeter closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant