Search box
The magnifier, the query and the shortcut that reaches it.
import { SearchBox } from "@forgeron/ui";/⌘K
import { SearchBox } from "@forgeron/ui";
export default function Default() {
return (
<div style={{ display: "grid", gap: 12, width: 320 }}>
<SearchBox placeholder="Search issues" shortcut="/" />
<SearchBox placeholder="Search or run a command" shortcut={["⌘", "K"]} />
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
shortcut | string | string[] | — | Keys shown at the end. |
...rest | InputHTMLAttributes | — | placeholder, value, onChange… |
className | string | — | Extra classes. |