overlay/@mihcm/ui·v0.21.0·stable
Popover
Click-triggered floating panel anchored to a trigger. Composable: Popover, PopoverTrigger, PopoverContent.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Popover, PopoverTrigger, PopoverContent } from '@mihcm/ui/Popover';
export function Example() {
return (
<Popover
side="bottom"
size="md"
></Popover>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add PopoverCopies the source into
components/ds/Popover.tsx. You own the file. Use --out to override the directory or --force to overwrite.