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 { Tag } from "@/rl-ui";
<Tag color="blue">Design</Tag>Examples#
Variants & heights#
import { Tag } from "@/rl-ui";
<>
<Tag variant="basic" height={20}>Basic 20</Tag>
<Tag variant="basic" height={24}>Basic 24</Tag>
<Tag variant="pill" height={24}>Pill</Tag>
<Tag variant="pill" height={32} fontSize={14}>Pill 32</Tag>
</>Closable & colors#
import { Tag } from "@/rl-ui";
<>
<Tag color="green" closable>Green</Tag>
<Tag color="orange" closable>Orange</Tag>
<Tag color="purple" closable>Purple</Tag>
<Tag disabled>Disabled</Tag>
</>API#
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "basic" | "pill" | "basic" | Corner treatment. |
height | 20 | 24 | 32 | 24 | Tag height in px. |
fontSize | 12 | 14 | 12 | Label font size. |
color | Color | "gray" | Tag color token. |
closable | boolean | false | Show close affordance. |
onClose | () => void | — | Close handler. |
disabled | boolean | false | Muted / non-interactive. |
icon | ReactNode | — | Leading icon. |
avatar | ReactNode | — | Leading avatar. |