PopoverProps beta
Interface of @v12-engine/client/kit
ts
export interface PopoverPropsWhat a Popover is given: what opens it, what it holds, where it goes and whether it is open
Members
ark
ts
ark?: Partial<Omit<Ark.RootProps, 'children' | 'open'>>;The rest of Ark's popover, which it is (modal, autoFocus, closeOnInteractOutside...): Ark's own, not the kit's to promise
children
ts
children: JSX.Element;What floats by the trigger when it is open
class
ts
class?: string;For what floats
mount
ts
mount?: Element;Where it goes: the place it is in (a game's element), or the page's body, when left out
onOpen
ts
onOpen?: (open: boolean) => void;Told whether it is open when that changes
open
ts
open?: boolean;Open or not, said from outside (with onOpen); by itself when left out
placement
ts
placement?: TipPlacement;Which side of the trigger it goes: bottom-start when left out
trigger
ts
trigger: JSX.Element;What is pressed to open it