UNPKG

react-lightning-design-system

Version:

Salesforce Lightning Design System components built with React

31 lines (30 loc) 974 B
import React, { CSSProperties, SyntheticEvent, Ref, EventHandler } from 'react'; import { ButtonProps } from './Button'; import { Bivariant } from './typeUtils'; export type DropdownMenuAlign = 'left' | 'right'; export type DropdownMenuSize = 'small' | 'medium' | 'large'; type EventKey = string | number; /** * */ export type DropdownButtonProps = { className?: string; label?: React.ReactNode; opened?: boolean; defaultOpened?: boolean; menuAlign?: DropdownMenuAlign; menuSize?: DropdownMenuSize; menuHeader?: string; nubbinTop?: boolean; hoverPopup?: boolean; menuStyle?: CSSProperties; dropdownRef?: Ref<HTMLDivElement>; onClick?: EventHandler<SyntheticEvent<HTMLButtonElement>>; onBlur?: () => void; onMenuSelect?: Bivariant<(eventKey: EventKey) => void>; } & Omit<ButtonProps, 'onClick' | 'onBlur'>; /** * */ export declare const DropdownButton: (props: DropdownButtonProps) => React.JSX.Element; export {};