Search Bar
An iPhone OS search field: a white rounded pill with a magnifier glyph and grey clear button on a blue-grey glossy bar.
Installation
Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.
Without the namespace, install straight from the URL:
Usage
import { SearchBar } from "@/components/ui/search-bar"<SearchBar placeholder="Search" aria-label="Search contacts" />Examples
iOS
variant="ios" puts the pill on the blue-grey iPhone OS tray. Add showCancel for the Cancel button that clears and blurs the field.
<SearchBar variant="ios" showCancel placeholder="Search" aria-label="Search contacts" />API
SearchBar accepts every input prop except type (it is always search), plus:
The field works controlled (value + onChange) or uncontrolled. Always give it an accessible name with aria-label or a <label>.