Components › Overlays

Info tip

A small info icon beside a label that explains it on hover or focus.

Installation

npx plankui@latest add info-tip

Usage

import { InfoTip } from "@/components/ui/info-tip";

<InfoTip label="About active users">People who signed in during the last 30 days.</InfoTip>

API reference

PropTypeDefaultDescription
childrenReactNoderequiredThe explanation, a sentence or two.
labelstring"More information"What the tip explains, for screen readers.
side"top" | "right" | "bottom" | "left""top"Where the tip opens.

View the source on GitHub