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 { AlertBanner } from "@/rl-ui";
<AlertBanner variant="success" title="Saved" message="Your changes were published." />Examples#
Variants#
import { AlertBanner } from "@/rl-ui";
<>
<AlertBanner variant="info" title="Info" message="Supporting message." />
<AlertBanner variant="warning" title="Warning" message="Supporting message." />
<AlertBanner variant="success" title="Success" message="Supporting message." />
<AlertBanner variant="error" title="Error" message="Supporting message." />
</>Dismissible#
import { AlertBanner } from "@/rl-ui";
<AlertBanner variant="info" title="New feature" message="Try the updated timeline." dismissible />API#
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "info" | "warning" | "success" | "error" | "info" | Banner tone. |
title | ReactNode | — | Banner title (required). |
message | ReactNode | — | Supporting message. |
dismissible | boolean | false | Show dismiss control. |
onDismiss | () => void | — | Dismiss handler. |
action | ReactNode | — | Optional action slot. |
icon | ReactNode | — | Override default icon. |