Tooltip

Hover/focus tooltip with configurable side and delay.

Sides

Top tooltipBottom tooltipLeft tooltipRight tooltip
import { Tooltip, Button } from '@canarist/ui'

<Tooltip content="Save changes" side="top">
  <Button>Save</Button>
</Tooltip>

Reference

PropTypeDefaultDescription
contentstringText shown inside the tooltip.
side'top' | 'bottom' | 'left' | 'right''top'Which side of the trigger the tooltip appears on.
delaynumber400Delay in milliseconds before the tooltip appears.
childrenReactNodeElement that triggers the tooltip on hover/focus.