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 { Tooltip, Button } from "@/rl-ui";
<Tooltip content="Helpful tip">
<Button variant="secondary">Hover me</Button>
</Tooltip>Examples#
Sides#
import { Tooltip, Button } from "@/rl-ui";
<>
<Tooltip content="Top" side="top"><Button>Top</Button></Tooltip>
<Tooltip content="Right" side="right"><Button>Right</Button></Tooltip>
<Tooltip content="Bottom" side="bottom"><Button>Bottom</Button></Tooltip>
<Tooltip content="Left" side="left"><Button>Left</Button></Tooltip>
</>API#
| Prop | Type | Default | Description |
|---|---|---|---|
content | ReactNode | — | Tooltip body (required). |
side | "top" | "right" | "bottom" | "left" | "top" | Preferred placement. |
align | "start" | "center" | "end" | "center" | Alignment along the side. |
delayDuration | number | 200 | Open delay in ms. |
hideArrow | boolean | false | Hide the arrow. |