Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItem.d.ts

raw
1 /// <reference types="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 /** Sets position of the icon when text is also passed in */
8 iconPosition?: 'start' | 'end';
9 /** Additional classes added to the toggle group item */
10 className?: string;
11 /** Flag indicating if the toggle group item is disabled */
12 isDisabled?: boolean;
13 /** Flag indicating if the toggle group item is selected */
14 isSelected?: boolean;
15 /** required when icon is used with no supporting text */
16 'aria-label'?: string;
17 /** Optional id for the button within the toggle group item */
18 buttonId?: string;
19 /** A callback for when the toggle group item selection changes. */
20 onChange?: (event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent, selected: boolean) => void;
21 }
22 export declare const ToggleGroupItem: React.FunctionComponent<ToggleGroupItemProps>;
23 //# sourceMappingURL=ToggleGroupItem.d.ts.map