UNPKG

@gpa-gemstone/react-interactive

Version:
33 lines (32 loc) 877 B
/** * Represents the structure of a button used within the application. */ interface IButton { /** * text label that appears on the button */ Label: JSX.Element | string; Callback: () => void; Group?: number; Disabled?: boolean; ToolTipContent?: JSX.Element; ShowToolTip?: boolean; ToolTipLocation?: ('top' | 'bottom' | 'left' | 'right'); Key?: string | number; } /** * Represents the properties for a component that renders buttons. */ interface IProps { Label: JSX.Element | string; Callback: () => void; Disabled?: boolean; Options: IButton[]; Size?: 'sm' | 'lg' | 'xlg'; BtnClass?: string; TooltipContent?: JSX.Element; TooltipLocation?: ('top' | 'bottom' | 'left' | 'right'); ShowToolTip?: boolean; } declare const BtnDropdown: (props: IProps) => JSX.Element; export default BtnDropdown;