UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

22 lines (21 loc) 663 B
import { UseFloatingOptions } from '@floating-ui/react'; import React from 'react'; export type NJPopoverRootProps = React.PropsWithChildren & { /** * Whether the popover is opened or not. */ opened?: boolean; /** * Whether the popover should be opened initially. */ initialOpened?: boolean; /** * Callback when the popover is opened or closed. */ onOpen?: (open: boolean) => void; /** * Options for the useFloating hook. */ useFloatingOptions?: Omit<UseFloatingOptions, 'open' | 'onOpenChange' | 'whileElementsMounted'>; }; export declare const NJPopoverRoot: React.FC<NJPopoverRootProps>;