UNPKG

@reactodia/workspace

Version:

Reactodia Workspace -- library for visual interaction with graphs in a form of a diagram.

32 lines 1.15 kB
import * as React from 'react'; export interface DropdownProps { className?: string; direction?: 'down' | 'up'; expanded: boolean; toggle: React.ReactNode; children: React.ReactNode; onClickOutside?: () => void; } export declare function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX.Element; export interface DropdownMenuProps { className?: string; direction?: 'down' | 'up'; title?: string; children: React.ReactNode; } export declare function DropdownMenu(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element; export interface DropdownMenuContext { expanded: boolean; setExpanded: (update: (value: boolean) => boolean) => void; } export declare function useDropdownMenu(): DropdownMenuContext; export interface DropdownMenuItemProps { className?: string; title?: string; disabled?: boolean; onSelect?: () => void; children: React.ReactNode; } export declare function DropdownMenuItem(props: DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element; export declare function useInsideDropdown(): boolean; //# sourceMappingURL=dropdown.d.ts.map