UNPKG

@furystack/shades-common-components

Version:

Common UI components for FuryStack Shades

15 lines 685 B
import type { ChildrenList } from '@furystack/shades'; import type { MenuEntry } from './menu/menu-types.js'; export type DropdownPlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight'; export type DropdownProps = { /** Menu items to display in the dropdown */ items: MenuEntry[]; /** Placement of the dropdown relative to the trigger */ placement?: DropdownPlacement; /** Whether the dropdown is disabled */ disabled?: boolean; /** Called when an item is selected */ onSelect?: (key: string) => void; }; export declare const Dropdown: (props: DropdownProps, children: ChildrenList) => JSX.Element<any>; //# sourceMappingURL=dropdown.d.ts.map