Debian Codegraph @

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

raw
1 /// <reference types="react" />
2 export type IconSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'headingSm' | 'headingMd' | 'headingLg' | 'headingXl' | 'heading_2xl' | 'heading_3xl' | 'bodySm' | 'bodyDefault' | 'bodyLg';
3 export interface IconComponentProps extends Omit<React.HTMLProps<HTMLSpanElement>, 'size'> {
4 /** Icon content */
5 children?: React.ReactNode;
6 /** Icon when isInProgress is set to true. Defaults to a 1em spinner. */
7 progressIcon?: React.ReactNode;
8 /** Additional classes applied to the icon container */
9 className?: string;
10 /** Size of the icon component container and icon. */
11 size?: IconSize;
12 /** Size of icon. Overrides the icon size set by the size property. */
13 iconSize?: IconSize;
14 /** Size of progress icon. Overrides the icon size set by the size property. */
15 progressIconSize?: IconSize;
16 /** Status color of the icon */
17 status?: 'custom' | 'info' | 'success' | 'warning' | 'danger';
18 /** Indicates the icon is inline and should inherit the text font size and color. Overriden by size and iconSize properties. */
19 isInline?: boolean;
20 /** Indicates the icon is in progress. Setting this property to true will swap the icon with the progressIcon. */
21 isInProgress?: boolean;
22 /** Aria-label for the default progress icon */
23 defaultProgressArialabel?: string;
24 /** Flag indicating whether the icon passed as children should be mirrored for
25 * right to left (RTL) languages. This will not mirror the icon passed to progressIcon.
26 */
27 shouldMirrorRTL?: boolean;
28 }
29 export declare const Icon: React.FunctionComponent<IconComponentProps>;
30 //# sourceMappingURL=Icon.d.ts.map