Search Button
Opens search from a responsive toolbar button.
Installation
pnpm dlx shadcn@latest add @paneui/search-buttonUsage
Examples
Keyboard
The application opens search on click and registers its shortcut. The hint does not register a listener.
SearchButton
Also accepts every prop of button.
- label
- string
- Visible text and accessible name; defaults to the locale’s search label.
- shortcut= ⌘K
- React.ReactNode
- Shortcut hint; null hides it. Text and hint appear from 640px.
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Visible text and accessible name; defaults to the locale’s search label. |
| shortcut | React.ReactNode | ⌘K | Shortcut hint; null hides it. Text and hint appear from 640px. |