File: ToggleGroupItem.d.ts

package info (click to toggle)
cockpit 355-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 311,568 kB
  • sloc: javascript: 774,787; python: 40,655; ansic: 35,157; cpp: 11,141; sh: 3,512; makefile: 580; xml: 261
file content (23 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// <reference types="react" />
export interface ToggleGroupItemProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange'> {
    /** Text rendered inside the toggle group item */
    text?: React.ReactNode;
    /** Icon rendered inside the toggle group item */
    icon?: React.ReactNode;
    /** Sets position of the icon when text is also passed in */
    iconPosition?: 'start' | 'end';
    /** Additional classes added to the toggle group item */
    className?: string;
    /** Flag indicating if the toggle group item is disabled */
    isDisabled?: boolean;
    /** Flag indicating if the toggle group item is selected */
    isSelected?: boolean;
    /** required when icon is used with no supporting text */
    'aria-label'?: string;
    /** Optional id for the button within the toggle group item */
    buttonId?: string;
    /** A callback for when the toggle group item selection changes. */
    onChange?: (event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent, selected: boolean) => void;
}
export declare const ToggleGroupItem: React.FunctionComponent<ToggleGroupItemProps>;
//# sourceMappingURL=ToggleGroupItem.d.ts.map