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 { Input } from "@/rl-ui";
<Input placeholder="Email" />Examples#
Sizes#
import { Input } from "@/rl-ui";
<>
<Input size="small" placeholder="Small" />
<Input size="medium" placeholder="Medium" />
<Input size="large" placeholder="Large" />
</>Clearable#
import { Input } from "@/rl-ui";
<Input clearable defaultValue="Ada Lovelace" placeholder="Name" />Disabled#
import { Input } from "@/rl-ui";
<Input disabled placeholder="Disabled" defaultValue="Locked" />API#
| Prop | Type | Default | Description |
|---|---|---|---|
size | "small" | "medium" | "large" | "medium" | Field height. |
prefix | ReactNode | — | Content before the value. |
suffix | ReactNode | — | Content after the value. |
clearable | boolean | false | Shows a clear control when filled. |
disabled | boolean | false | Prevents editing. |
placeholder | string | — | Empty-state hint. |
type | string | "text" | Native input type. |
onPressEnter | () => void | — | Fires on Enter key. |