Search Trigger
A search-field-looking button that opens a command menu or search page. Built from the Button and Badge atoms; shared by Nav header, Nav sidebar and Page header.
import
{ SearchTrigger } from "@pepulux/ui"Default
Custom placeholder and shortcut
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | string | "Search" | Text shown in the field |
| shortcut | string | "⌘K" | Keyboard hint badge; pass "" to hide |
| onClick | () => void | — | Opens the search / command menu |
| className | string | — | Additional CSS classes (width etc.) |