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 { Popover, Button } from "@/rl-ui";
<Popover content={<p className="p-2">Popover body</p>}>
<Button variant="secondary">Open</Button>
</Popover>Examples#
Hover trigger#
import { Popover, Button } from "@/rl-ui";
<Popover triggerMode="hover" content="Appears on hover">
<Button variant="ghost">Hover</Button>
</Popover>API#
| Prop | Type | Default | Description |
|---|---|---|---|
content | ReactNode | — | Popover body (required). |
triggerMode | "click" | "hover" | "click" | How the popover opens. |
open | boolean | — | Controlled open state. |
onOpenChange | (open: boolean) => void | — | Open change handler. |
side | "top" | "right" | "bottom" | "left" | — | Preferred placement. |
delayDuration | number | 200 | Hover open delay. |