overlay/@mihcm/ui·v0.21.0·stable
Tooltip
Hover/focus tooltip (web) or long-press tooltip (native). Configurable side and delay.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Tooltip } from '@mihcm/ui/Tooltip';
export function Example() {
return (
<Tooltip
content="Copy to clipboard"
side="top"
></Tooltip>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add TooltipCopies the source into
components/ds/Tooltip.tsx. You own the file. Use --out to override the directory or --force to overwrite.