UNPKG

979 BTypeScriptView Raw
1import React, { SVGAttributes } from 'react';
2export declare type WithIconWrapperProps = {
3 /** Accessibility label. Required if `decorative` not defined. */
4 accessibilityLabel?: string;
5 /** Mark as decorative only and avoid accessibility. Required if `accessibilityLabel` not defined. */
6 decorative?: boolean;
7 /** Flip the icon on the horizontal axis. */
8 flip?: boolean;
9 /** Flip the icon on the vertical axis. */
10 flipVertical?: boolean;
11 /** Size of the icon. */
12 size?: number | string;
13 /** Color the icon using a CSS hexcode. */
14 color?: string;
15 /** Render as inline instead of block. */
16 inline?: boolean;
17};
18export declare type Props = {
19 focusable: SVGAttributes<unknown>['focusable'];
20 role: string;
21 style: React.CSSProperties;
22};
23export default function withIcon(name: string): (WrappedComponent: React.ComponentType<Props>) => React.ComponentType<WithIconWrapperProps>;
24//# sourceMappingURL=withIcon.d.ts.map
\No newline at end of file