Radio
Glass radio buttons in a radio group.
Installation#
pnpmnpmyarnbun
$ pnpm dlx shadcn@latest add @liquikit/radioNeeds the @liquikit registry in your components.json. Set it up once.
Usage#
import { Radio, RadioGroup } from "@/components/liquikit/radio"<RadioGroup defaultValue="auto" aria-label="Appearance">
<Radio value="light">Light</Radio>
<Radio value="dark">Dark</Radio>
<Radio value="auto">Automatic</Radio>
</RadioGroup>API Reference#
Radio
| 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 radio, plus className and style.
RadioGroup
Takes every prop of Base UI's radio group, plus className and style.