Number Field
A glass stepper. Drag its label sideways to scrub the value.
Installation#
pnpmnpmyarnbun
$ pnpm dlx shadcn@latest add @liquikit/number-fieldNeeds the @liquikit registry in your components.json. Set it up once.
Usage#
import { NumberField } from "@/components/liquikit/number-field"<NumberField label="Guests" defaultValue={2} min={1} max={12} />API Reference#
NumberField
| 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. | — |
label | ReactNodeA visible label, wired to the control for assistive technology. | — |
refraction | "interactive" | "always"When the glass bends the page. | "interactive" |
Also takes every prop of Base UI's number field, plus className and style.