Replies: 1 comment
-
With Ark UI v3 this is now possible: import { CheckIcon } from 'lucide-react'
import { Checkbox } from '@ark-ui/react'
export const Basic = () => (
<Checkbox.Root>
<Checkbox.Label>Checkbox</Checkbox.Label>
<Checkbox.Control>
<Checkbox.Indicator>
<CheckIcon />
</Checkbox.Indicator>
</Checkbox.Control>
<Checkbox.HiddenInput />
</Checkbox.Root>
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried using Checkbox and pass it a ref, but it seems like the ref is set on the label element(Checkbox.Root) and not the input element itself.
How I forward ref to input element? I want to get the uncontrolled component value.
Beta Was this translation helpful? Give feedback.
All reactions