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 { GridLayout } from "@/rl-ui";
<GridLayout columns={3} gap="4">
<div>One</div>
<div>Two</div>
<div>Three</div>
</GridLayout>Examples#
Two columns#
import { GridLayout, Badge } from "@/rl-ui";
<GridLayout columns={2} gap="3">
<Badge color="blue">Left</Badge>
<Badge color="green">Right</Badge>
</GridLayout>API#
| Prop | Type | Default | Description |
|---|---|---|---|
columns | number | string | — | Column track definition. |
rows | number | string | — | Row track definition. |
gap | string | — | Gap token. |
align | "start" | "center" | "end" | "stretch" | — | Align items. |
justify | "start" | "center" | "end" | "between" | "around" | "evenly" | "stretch" | — | Justify items. |