Checkbox
An inset slot that fills green when ticked.
Install and use
The first command adds the component and the Mine theme, the second adds this example. Render <Mine> once near your root for the skin, sounds and narrator.
"use client"
import { Checkbox, CheckboxIndicator } from "@/components/ui/checkbox"
import { CheckIcon } from "lucide-react"
function Example() {
return (
<label data-slot="label">
<Checkbox>
<CheckboxIndicator>
<CheckIcon aria-hidden="true" />
</CheckboxIndicator>
</Checkbox>
Accept terms and conditions
</label>
)
}
export { Example }