react-bulma-dropdown
Version:
It's a Bulma's dropdown, with an auto-height, scroll and portal support.
19 lines (18 loc) • 496 B
TypeScript
import { FC, ReactNode } from 'react';
export declare type ControlRefType = {
hide: () => void;
open: () => void;
};
declare type DropdownProps = {
children: ReactNode;
className?: string;
trigger?: string | ReactNode;
margin?: number;
portal?: HTMLElement | null;
isAnimated?: boolean;
openOnMount?: boolean;
hideOnLinkClick?: boolean;
controlRef?: (ref: ControlRefType) => void;
};
declare const Dropdown: FC<DropdownProps>;
export default Dropdown;