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 { Flex, Button } from "@/rl-ui";
<Flex gap="2">
<Button variant="primary">Save</Button>
<Button variant="secondary">Cancel</Button>
</Flex>Examples#
Column & between#
import { Flex, Badge } from "@/rl-ui";
<Flex direction="column" gap="3" align="start">
<Badge color="blue">One</Badge>
<Badge color="green">Two</Badge>
</Flex>Justify between#
import { Flex, Text, Button } from "@/rl-ui";
<Flex justify="between" align="center" className="w-full">
<Text variant="heading-03">Title</Text>
<Button size="small">Action</Button>
</Flex>API#
| Prop | Type | Default | Description |
|---|---|---|---|
direction | "row" | "column" | "row-reverse" | "column-reverse" | — | Flex direction. |
align | "start" | "center" | "end" | "stretch" | "baseline" | — | Align items. |
justify | "start" | "center" | "end" | "between" | "around" | "evenly" | — | Justify content. |
gap | string | — | Tailwind gap token (e.g. "2"). |
wrap | "wrap" | "nowrap" | "wrap-reverse" | boolean | — | Flex wrap. |
inline | boolean | false | Use inline-flex. |