Search Field

A capsule of glass with a magnifying glass and a clear button.

Installation#

pnpmnpmyarnbun
$ pnpm dlx shadcn@latest add @liquikit/search-field

Needs 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

PropTypeDefault
theme"light" | "dark"

Light or dark glass. Falls back to the nearest GlassThemeProvider, then light.

—
lensPartial<LensProfile>

Overrides for the lens profile, such as thickness, bevel, ior and magnification.

—
liquidnumber

How far the glass squashes and stretches as it moves. 0 keeps it rigid.

—
refraction"interactive" | "always"

When the glass bends the page. interactive bends it while the component is pressed, dragged or focused, always bends it all the time.

"interactive"

Also takes every prop of Base UI's input, plus className and style.