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 { EmptyState } from "@/rl-ui";
<EmptyState
message="No projects yet"
description="Create your first project to get started."
/>Examples#
With actions#
import { EmptyState } from "@/rl-ui";
<EmptyState
message="No tasks"
description="Add a task to populate this list."
primaryAction={{ children: "Add task", variant: "primary" }}
secondaryAction={{ children: "Import", variant: "secondary" }}
/>API#
| Prop | Type | Default | Description |
|---|---|---|---|
message | ReactNode | — | Primary empty message (required). |
description | ReactNode | — | Supporting text. |
icon | IconProps | — | Optional icon override. |
primaryAction | ButtonProps | — | Primary CTA props. |
secondaryAction | ButtonProps | — | Secondary CTA props. |