1 | import * as React from 'react';
|
2 | export interface ToggleGroupItemProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange'> {
|
3 | /** Text rendered inside the toggle group item */
|
4 | text?: React.ReactNode;
|
5 | /** Icon rendered inside the toggle group item */
|
6 | icon?: React.ReactNode;
|
7 | /** Additional classes added to the toggle group item */
|
8 | className?: string;
|
9 | /** Flag indicating if the toggle group item is disabled */
|
10 | isDisabled?: boolean;
|
11 | /** Flag indicating if the toggle group item is selected */
|
12 | isSelected?: boolean;
|
13 | /** required when icon is used with no supporting text */
|
14 | 'aria-label'?: string;
|
15 | /** Optional id for the button within the toggle group item */
|
16 | buttonId?: string;
|
17 | /** A callback for when the toggle group item selection changes. */
|
18 | onChange?: (selected: boolean, event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent) => void;
|
19 | }
|
20 | export declare const ToggleGroupItem: React.FunctionComponent<ToggleGroupItemProps>;
|
21 | //# sourceMappingURL=ToggleGroupItem.d.ts.map |
\ | No newline at end of file |