UNPKG

spartan-ui

Version:

React component library that focusses on getting the basics right leaving the design up to you

16 lines (15 loc) 455 B
import { FunctionComponent, ReactNode } from 'react'; import { CommonProps } from '../../types'; interface RenderProps { buttonProps: object; menuItemProps: object; menuProps: object; open: boolean; } interface DropdownProps extends CommonProps { children: (props: RenderProps) => ReactNode; defaultOpen?: boolean; id: string; } declare const Dropdown: FunctionComponent<DropdownProps>; export default Dropdown;