import * as React from 'react'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; export interface SvgIconTypeMap
{
props: P & {
/**
* Node passed into the SVG element.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: {
/** Styles applied to the root element. */
root?: string;
/** Styles applied to the root element if `color="primary"`. */
colorPrimary?: string;
/** Styles applied to the root element if `color="secondary"`. */
colorSecondary?: string;
/** Styles applied to the root element if `color="action"`. */
colorAction?: string;
/** Styles applied to the root element if `color="error"`. */
colorError?: string;
/** Styles applied to the root element if `color="disabled"`. */
colorDisabled?: string;
/** Styles applied to the root element if `fontSize="inherit"`. */
fontSizeInherit?: string;
/** Styles applied to the root element if `fontSize="small"`. */
fontSizeSmall?: string;
/** Styles applied to the root element if `fontSize="large"`. */
fontSizeLarge?: string;
};
/**
* The color of the component. It supports those theme colors that make sense for this component.
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
* @default 'inherit'
*/
color?: 'inherit' | 'primary' | 'secondary' | 'action' | 'disabled' | 'error';
/**
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
* @default 'default'
*/
fontSize?: 'inherit' | 'default' | 'small' | 'large';
/**
* Applies a color attribute to the SVG element.
*/
htmlColor?: string;
/**
* The shape-rendering attribute. The behavior of the different options is described on the
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
* If you are having issues with blurry icons you should investigate this prop.
*/
shapeRendering?: string;
/**
* Provides a human-readable title for the element that contains it.
* https://www.w3.org/TR/SVG-access/#Equivalent
*/
titleAccess?: string;
/**
* Allows you to redefine what the coordinates without units mean inside an SVG element.
* For example, if the SVG element is 500 (width) by 200 (height),
* and you pass viewBox="0 0 50 20",
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
* to bottom right (50,20) and each unit will be worth 10px.
* @default '0 0 24 24'
*/
viewBox?: string;
};
defaultComponent: D;
}
/**
*
* Demos:
*
* - [Icons](https://material-ui.com/components/icons/)
* - [Material Icons](https://material-ui.com/components/material-icons/)
*
* API:
*
* - [SvgIcon API](https://material-ui.com/api/svg-icon/)
*/
declare const SvgIcon: OverridableComponent