@fluentui/react-icons-mdl2
Version:
SVG icon components for @fluentui/react
26 lines (25 loc) • 935 B
TypeScript
import * as React from 'react';
import type { ISvgIconProps } from './SvgIcon.types';
export type SvgIconFuncArg<TProps = ISvgIconProps> = {
classes: {
[iconSlot: string]: string;
};
props: TProps;
};
export type SvgIconChildrenFn<TProps = ISvgIconProps> = (svgIcon: SvgIconFuncArg<TProps>) => React.ReactNode;
export type SvgIconCreateFnParams<TProps> = {
svg: SvgIconChildrenFn<TProps & ISvgIconProps>;
displayName: string;
};
export type SvgIconFuncWithRootArg<TProps = ISvgIconProps> = {
classes: {
[iconSlot: string]: string;
};
props: TProps;
processedRootProps: React.HTMLAttributes<HTMLElement>;
};
export type SvgIconChildrenFnWithRoot<TProps = ISvgIconProps> = (svgIcon: SvgIconFuncWithRootArg<TProps>) => React.ReactElement;
export type SvgIconCreateFnWithRootParams<TProps> = {
children: SvgIconChildrenFnWithRoot<TProps & ISvgIconProps>;
displayName: string;
};