Tooltip#

Tooltip displays informational text when hovering over or focusing on an element.

Import#

TSX
import { Tooltip, Button, Badge, Row, Flex } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Force Open#

Use the open prop to force the tooltip to be visible.

TSX
Loading preview...

Positions#

TSX
Loading preview...

Colors#

TSX
Loading preview...

Custom Content#

Use Tooltip.Content for rich tooltip content instead of plain text.

TSX
Loading preview...

Responsive#

Use Tailwind responsive prefixes on the class prop to control tooltip visibility at different breakpoints.

TSX
Loading preview...

Props#

Tooltip#

PropTypeDefaultDescription
tipstringundefinedTooltip text (sets data-tip attribute)
position'top' | 'bottom' | 'left' | 'right'undefined (top)Position of the tooltip
color'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'undefinedColor variant
openbooleanfalseForce the tooltip to be visible
classstringundefinedAdditional CSS classes

Tooltip.Content#

PropTypeDefaultDescription
classstringundefinedAdditional CSS classes