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 { Textarea } from "@/rl-ui";
<Textarea label="Notes" placeholder="Describe the work…" rows={4} />Examples#
Helper & error#
import { Textarea } from "@/rl-ui";
<>
<Textarea label="Summary" helperText="Keep it under 280 characters." rows={3} />
<Textarea label="Reason" helperTextType="error" helperText="Required" rows={3} />
</>Disabled#
import { Textarea } from "@/rl-ui";
<Textarea label="Locked" disabled defaultValue="Cannot edit" rows={3} />API#
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Field label. |
helperText | string | — | Hint or validation message. |
helperTextType | "error" | "warning" | "info" | — | Helper tone. |
required | boolean | false | Marks the field required. |
maxRows | number | — | Cap auto-resize height. |
rows | number | — | Initial visible rows. |
disabled | boolean | false | Prevents editing. |
readOnly | boolean | false | Read-only value. |