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 { Text } from "@/rl-ui";
<>
<Text variant="heading-02">Heading</Text>
<Text variant="body-short-01">Body copy</Text>
</>Examples#
Variants#
import { Text } from "@/rl-ui";
<>
<Text variant="heading-01">Heading 01</Text>
<Text variant="heading-02">Heading 02</Text>
<Text variant="heading-03">Heading 03</Text>
<Text variant="heading-compact-01">Compact</Text>
<Text variant="body-short-01">Body short</Text>
<Text variant="label-01">Label</Text>
<Text variant="helper-text-01">Helper</Text>
<Text variant="code">code()</Text>
</>API#
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "heading-01" | "heading-02" | "heading-03" | "heading-compact-01" | "body-short-01" | "label-01" | "helper-text-01" | "code" | "body-short-01" | Typography token. |
className | string | — | Additional classes. |