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 { InputDuration } from "@/rl-ui";
<InputDuration value={90} onChange={setMinutes} />Examples#
Sizes#
import { InputDuration } from "@/rl-ui";
<>
<InputDuration size="small" value={45} onChange={setM} />
<InputDuration size="medium" value={90} onChange={setM} />
<InputDuration size="large" value={120} onChange={setM} />
</>API#
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | Duration in minutes. |
onChange | (minutes: number) => void | — | Change handler. |
min | number | — | Minimum minutes. |
max | number | — | Maximum minutes. |
size | "small" | "medium" | "large" | "medium" | Inherited from Input. |
disabled | boolean | false | Prevents editing. |