UNPKG

@itgold/grandbazar-ui-kit

Version:

Grandbazar.io UI component library: React, Typescript, Tailwind, Rollup, Storybook, Jest.

19 lines (18 loc) 729 B
import { ReactNode, ReactElement } from 'react'; import { DropdownButton } from '@/components/dropdown/components/DropdownButton'; import { DropdownItem } from '@/components/dropdown/components/DropdownItem'; type TDropdownProps = { theme?: 'dark' | 'light'; menuPosition: 'top' | 'bottom'; toggler: ReactNode; children: ReactNode; className?: string; classNameOptions?: string; parentSizes?: DOMRect; }; declare function Dropdown({ theme, toggler, children, menuPosition: position, className, classNameOptions, parentSizes, }: TDropdownProps): ReactElement; declare namespace Dropdown { var Button: typeof DropdownButton; var Item: typeof DropdownItem; } export { Dropdown, TDropdownProps };