Checkbox
A small drop of glass that fills with the accent. The file also has a checkbox group.
Installation#
$ pnpm dlx shadcn@latest add @liquikit/checkboxNeeds the @liquikit registry in your components.json. Set it up once.
Usage#
import { Checkbox } from "@/components/liquikit/checkbox"<Checkbox defaultChecked>Remember me</Checkbox>Examples#
Group#
CheckboxGroup keeps a list of checked values. A parent checkbox checks or clears them all, and shows a dash when only some are checked.
API Reference#
Checkbox
| Prop | Type | Default |
|---|---|---|
theme | "light" | "dark"Light or dark glass. Falls back to the nearest | — |
lens | Partial<LensProfile>Overrides for the lens profile, such as | — |
liquid | numberHow far the glass squashes and stretches as it moves. | — |
refraction | "interactive" | "always"When the glass bends the page. | "interactive" |
children | ReactNodeThe content. | — |
Also takes every prop of Base UI's checkbox, plus className and style.
CheckboxGroup
Takes every prop of Base UI's checkbox group, plus className and style.