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 { Alert } from "@/rl-ui";
<Alert variant="warning" title="Check connection">Try again in a moment.</Alert>Examples#
Variants#
import { Alert } from "@/rl-ui";
<>
<Alert variant="default" title="default">Message</Alert>
<Alert variant="info" title="info">Message</Alert>
<Alert variant="success" title="success">Message</Alert>
<Alert variant="warning" title="warning">Message</Alert>
<Alert variant="error" title="error">Message</Alert>
</>API#
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "info" | "success" | "warning" | "error" | "info" | Alert tone. |
title | ReactNode | — | Optional title. |
dismissible | boolean | false | Show dismiss control. |
onDismiss | () => void | — | Dismiss handler. |
action | ReactNode | — | Optional action slot. |
icon | ReactNode | — | Override default icon. |