UNPKG

1.31 kBTypeScriptView Raw
1import * as React from 'react';
2import { DropdownToggleProps } from './DropdownToggle';
3import { BadgeProps } from '../Badge';
4export interface BadgeToggleProps extends DropdownToggleProps {
5 /** HTML ID of dropdown toggle */
6 id?: string;
7 /** Anything which can be rendered as dropdown toggle */
8 children?: React.ReactNode;
9 /** Badge specific properties */
10 badgeProps?: BadgeProps;
11 /** Classess applied to root element of dropdown toggle */
12 className?: string;
13 /** Flag to indicate if menu is opened */
14 isOpen?: boolean;
15 /** Label Toggle button */
16 'aria-label'?: string;
17 /** Callback called when toggle is clicked */
18 onToggle?: (isOpen: boolean) => void;
19 /** Element which wraps toggle */
20 parentRef?: any;
21 /** The menu element */
22 getMenuRef?: () => HTMLElement;
23 /** Forces active state */
24 isActive?: boolean;
25 /** Disables the dropdown toggle */
26 isDisabled?: boolean;
27 /** Display the toggle with no border or background */
28 isPlain?: boolean;
29 /** Type to put on the button */
30 type?: 'button' | 'submit' | 'reset';
31 /** Allows selecting toggle to select parent */
32 bubbleEvent?: boolean;
33}
34export declare const BadgeToggle: React.FunctionComponent<BadgeToggleProps>;
35//# sourceMappingURL=BadgeToggle.d.ts.map
\No newline at end of file