Components

Tooltip

Displays brief, contextual information when hovering over or focusing on an element, improving clarity without cluttering the interface.

Loading

Installation

pnpm dlx shadcn@latest add @toui/tooltip

Examples

Light

Loading

Side

Loading

Pattern

Tokens

7 CSS variables in 7 categories.

px

CSS VariableValueDescription
--tooltip-pxvar(--component-px-sm)8px

py

CSS VariableValueDescription
--tooltip-py0.25rem4px

text

CSS VariableValueDescription
--tooltip-textvar(--component-text-xs)10px

radius

CSS VariableValueDescription
--tooltip-radiusvar(--component-radius-sm)

max-width

CSS VariableValueDescription
--tooltip-max-width18rem288px

bg

CSS VariableValueDescription
--tooltip-bgvar(--popover)

text-color

CSS VariableValueDescription
--tooltip-text-colorvar(--popover-foreground)

Credits

  • Used Radix UI for the tooltip component.

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.