Overlays
Tooltip
A short name for a control with no text, shown on hover and on keyboard focus.
Overlays
A short name for a control with no text, shown on hover and on keyboard focus.
Change the props on the right, then point at the button. delay belongs to the TooltipProvider.
import { Button } from 'omuk-ui/button';
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from 'omuk-ui/tooltip';
<TooltipProvider>
<Tooltip>
<TooltipTrigger render={<Button variant="outline" />}>
Point at me
</TooltipTrigger>
<TooltipContent>Copy the value</TooltipContent>
</Tooltip>
</TooltipProvider>Each icon button has an aria-label, and the tooltip shows the same name, with its shortcut in a kbd. In a TooltipProvider, one tooltip shows at a time: slide along the row, and the next name shows at once.
side picks where it opens. With no room there, it takes the other side. This provider has no delay, so each name shows as soon as the pointer is over its button.