UNPKG

@redocly/theme

Version:

Shared UI components lib

31 lines (30 loc) 986 B
import React from 'react'; import type { PropsWithChildren } from 'react'; export type DropdownProps = PropsWithChildren<{ trigger: React.ReactNode; triggerEvent?: 'click' | 'hover'; placement?: 'top' | 'bottom'; alignment?: 'start' | 'end'; active?: boolean; closeOnClick?: boolean; dataAttributes?: Record<string, string>; className?: string; withArrow?: boolean; onClick?: (event: React.UIEvent) => void; onClose?: () => void; }>; export declare const Dropdown: React.ForwardRefExoticComponent<{ trigger: React.ReactNode; triggerEvent?: "click" | "hover"; placement?: "top" | "bottom"; alignment?: "start" | "end"; active?: boolean; closeOnClick?: boolean; dataAttributes?: Record<string, string>; className?: string; withArrow?: boolean; onClick?: (event: React.UIEvent) => void; onClose?: () => void; } & { children?: React.ReactNode | undefined; } & React.RefAttributes<HTMLDivElement>>;