Tooltip
A short label on hover and focus: a pill, with a shortcut when there is one.
<Tooltip content="Filter">
<IconButton icon={icons.filter} aria-label="Filter" variant="secondary" tooltip={false} />
</Tooltip>import { Tooltip } from "@logicplanes/kaeso-ui";Props
childrenReactElement<unknown, string | JSXElementConstructor<any>>The trigger: a single element that accepts a ref.
contentReactNodeWhat the tooltip says. Keep it to the control's name or one short sentence.
defaultOpenbooleanWhether it starts open, when the component keeps its own state.
delaynumberHow long the pointer has to rest before it opens, in milliseconds.
disabledbooleanNever shows the tooltip.
onOpenChange((open: boolean) => void)Called when it opens or closes.
openbooleanWhether it is open, when you control it.
shape"pill" | "multiline"A pill for a short label, or a box for several lines.
shortcutstring[] | string[][]A shortcut shown after the text:
["mod", "k"]or[["g"], ["m"]].side"top" | "bottom" | "left" | "right"The side it opens on.
sideOffsetnumberDistance from the trigger in px.