The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
A form component used to toggle between checked and unchecked states.
Import the Checkbox
component from @bun-ui/react
and use it in your project:
import { Checkbox } from "@bun-ui/react"
<Checkbox label="Accept terms and conditions" />
For advanced label customization, omit the label prop and use a separate label component:
Prop | Type | Default | Description |
---|---|---|---|
color | "primary" | "secondary" | "neutral" | "primary" | Color variant of the checkbox. |
label | ReactNode | - | Label for the checkbox. |