github chakra-ui/ark @ark-ui/solid@3.2.0

latest releases: @ark-ui/svelte@5.9.1, @ark-ui/vue@5.24.1, @ark-ui/solid@5.24.1...
15 months ago

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>
  )
}

Don't miss a new ark release

NewReleases is sending notifications on new releases.