Sections
Components
- AlertBanner
- AlertDialog
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- CalendarIcon
- CellLayout
- CellLink
- Checkbox
- Collapse
- ContentSwitcher
- ControlLabel
- DatePicker
- Dialog
- Divider
- Drawer
- EmptyCell
- EmptyState
- Empty
- ErrorOverlay
- FilterBar
- FilterChips
- Flex
- GridLayout
- HumanisedDate
- Icon
- InputDuration
- InputField
- Input
- Label
- Loader
- MoreActions
- NumberInput
- OutsideClickHandler
- PageLoader
- Page
- Popconfirm
- Popover
- ProgressPie
- Progress
- RadioButtonGroup
- RadioGroup
- Radio
- RelativeTime
- Resizable
- SearchInput
- Select
- SkeletonText
- Skeleton
- Space
- SquadAvatarList
- StatusPicker
- Stepper
- Switch
- TableLight
- Tabs
- Tag
- Text
- Textarea
- Toast
- Tooltip
- TriggerSelect
- Upload
import { SearchInput } from "@/rl-ui";
<SearchInput value={q} onChange={setQ} placeholder="Search…" />Examples#
Sizes#
import { SearchInput } from "@/rl-ui";
<>
<SearchInput size="medium" value="" onChange={setQ} placeholder="Medium" />
<SearchInput size="large" value="" onChange={setQ} placeholder="Large" />
</>Filled & disabled#
import { SearchInput } from "@/rl-ui";
<>
<SearchInput value="Acme" onChange={setQ} placeholder="Search…" />
<SearchInput value="" onChange={setQ} disabled placeholder="Disabled" />
</>API#
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled value (required). |
onChange | (value: string) => void | — | Fires on each keystroke. |
size | "medium" | "large" | "medium" | Field height. |
placeholder | string | — | Empty-state hint. |
disabled | boolean | false | Prevents interaction. |
debounceDelay | number | 300 | Debounce for onDebouncedChange. |
onDebouncedChange | (value: string) => void | — | Debounced change handler. |
onClear | () => void | — | Clear button callback. |