@material-ui/core
Version:
React components that implement Google's Material Design.
25 lines (20 loc) • 649 B
TypeScript
import * as React from 'react';
import { StandardProps, PropTypes } from '..';
export interface IconProps
extends StandardProps<React.HTMLAttributes<HTMLSpanElement>, IconClassKey> {
color?: PropTypes.Color | 'action' | 'disabled' | 'error';
component?: React.ElementType<React.HTMLAttributes<HTMLSpanElement>>;
fontSize?: 'inherit' | 'default' | 'small' | 'large';
}
export type IconClassKey =
| 'root'
| 'colorSecondary'
| 'colorAction'
| 'colorDisabled'
| 'colorError'
| 'colorPrimary'
| 'fontSizeInherit'
| 'fontSizeSmall'
| 'fontSizeLarge';
declare const Icon: React.ComponentType<IconProps>;
export default Icon;