Search Field
A capsule of glass with a magnifying glass and a clear button.
Installation#
pnpmnpmyarnbun
$ pnpm dlx shadcn@latest add @liquikit/search-fieldNeeds the @liquikit registry in your components.json. Set it up once.
Usage#
import { SearchField } from "@/components/liquikit/search-field"<SearchField value={query} onValueChange={setQuery} aria-label="Search" />API Reference#
SearchField
| 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" |
Also takes every prop of Base UI's input, plus className and style.