UNPKG

@promptbook/markdown-utils

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

20 lines (19 loc) 615 B
import { ReactNode } from 'react'; type DropdownProps = { actions: Array<{ icon: ReactNode; name: string; onClick: () => void; }>; }; /** * A dropdown menu component that displays a list of actions. * * The menu is toggled by a hamburger menu button. When an action is selected, * the menu automatically closes. * * @param props - Contains an array of actions with icons, names, and click handlers * @private internal subcomponent used by various components */ export declare function Dropdown({ actions }: DropdownProps): import("react/jsx-runtime").JSX.Element; export {};