Component
Input
Single-line text input. Supports placeholder, disabled state, and an optional leading icon.
Default
tsx
<Input placeholder="Search photographs…" />With label
With icon
tsx
<Input icon={<Search size={14} />} placeholder="Search…" />Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | ReactNode | — | Optional icon placed at the left edge. |
| placeholder | string | — | Placeholder text. |
| disabled | boolean | — | Disables interaction. |
| type | string | "text" | HTML input type attribute. |