UNPKG

@loadsmart/miranda-wc

Version:

Miranda Web Components component library

16 lines (15 loc) 561 B
import type { Strategy, Side } from '@floating-ui/dom'; export type PopoverPosition = Strategy; export type AlignedPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'; export type PopoverPlacement = Side | AlignedPlacement; export type PopoverRepositionEventDetail = { reason: string; }; export type { Side }; export interface PopoverProps { position?: PopoverPosition; placement?: PopoverPlacement; open?: boolean; asPopover?: boolean; onpopoverreposition?: (event: CustomEvent<PopoverRepositionEventDetail>) => void; }