Tooltip
Short hover and focus labels for compact controls.
Demo
Placement
Usage
import { Info } from 'lucide-react'
import { Button, Tooltip } from 'regen-ui'
export function InfoTooltip() {
return (
<Tooltip label="Available after your first deposit.">
<Button.Icon title="Show deposit help">
<Info />
</Button.Icon>
</Tooltip>
)
}API Reference
Tooltip.Props
| Name | Type | Default | Description |
|---|---|---|---|
children | ReactElement | None | Element receiving the tooltip, typically a button or icon. |
label | ReactNode | None | Tooltip label. |
side | 'top' | 'right' | 'bottom' | 'left' | 'top' | Side of the trigger to anchor the popup. |
childrenType
ReactElementDefaultNone
Element receiving the tooltip, typically a button or icon.labelType
ReactNodeDefaultNone
Tooltip label.sideType
'top' | 'right' | 'bottom' | 'left'Default
Side of the trigger to anchor the popup.'top'