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 { Select } from "@/rl-ui";
<Select
options={[{ value: "a", label: "Alpha" }, { value: "b", label: "Beta" }]}
placeholder="Pick one"
/>Examples#
Sizes#
import { Select } from "@/rl-ui";
<>
<Select size="small" options={options} placeholder="Small" />
<Select size="medium" options={options} placeholder="Medium" />
<Select size="large" options={options} placeholder="Large" />
</>Multi-select#
import { Select } from "@/rl-ui";
<Select isMulti isClearable options={options} placeholder="Pick many" />Disabled#
import { Select } from "@/rl-ui";
<Select isDisabled options={options} placeholder="Disabled" />API#
| Prop | Type | Default | Description |
|---|---|---|---|
options | Option[] | — | Selectable options. |
size | "small" | "medium" | "large" | "medium" | Control height. |
variant | "basic" | "tag" | "user" | "basic" | Option rendering style. |
isMulti | boolean | false | Allow multiple values. |
isClearable | boolean | false | Show clear affordance. |
isDisabled | boolean | false | Prevents interaction. |
placeholder | string | — | Empty-state hint. |
value | Option | Option[] | null | — | Controlled value. |
onChange | (value) => void | — | Selection change handler. |