Tooltip

Tooltip is a neobrutalist React component from Cruise UI. A short hint on hover and focus. Hard-edged, no fade. Install it with npx shadcn@latest add @cruiseui/tooltip.

Install

Terminal

npx shadcn@latest add @cruiseui/tooltip

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

When to use it

When to use

A short hint about a control: what an icon button does, how a fee is worked out.

When not to

Anything people must know. Phones and keyboards may never show it; put it on the page.

Props

CruiseTooltip

PropTypeDefaultDescription
contentstring——
childrenReactElement<{ "aria-describedby"?: string | undefined; }, string | JSXElementConstructor<any>>——

Accessibility

  • Opens on hover AND keyboard focus (after ~300ms), closes with Esc, toggles on tap.
  • role="tooltip"; the trigger points to it with aria-describedby.