Skip to content

@ark-ui/solid@3.2.0

Compare
Choose a tag to compare
@cschroeter cschroeter released this 06 Jun 05:32
· 1176 commits to main since this release

Added

  • All Components: Introduced the Provider component for easier access to internal machine
    APIs, improving component composition. See the example below:
import { Avatar, useAvatar } from '@ark-ui/solid'

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

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