SvgIconProps
Defined in: types.ts:55
Props of <SvgIcon> component
Extends
Section titled “Extends”Properties
Section titled “Properties”color?
Section titled “color?”
optionalcolor:string
Defined in: types.ts:40
Icon color.
Should be a valid CSS color value or a variable, i.e. #ff0000, red, var(--icon-color).
If undefined is passed, color won’t be changed.
Default
Section titled “Default”undefinedInherited from
Section titled “Inherited from”colorTransition?
Section titled “colorTransition?”
optionalcolorTransition:string
Defined in: types.ts:49
Icon color transition. Should contain only timing and easing functions.
For example, if you want to set transition: color 0.3s ease-out;, you should pass only 0.3s ease-out.
Default
Section titled “Default”"0.3s linear"Inherited from
Section titled “Inherited from”SvgIconStyleProps.colorTransition
optionalsize:string
Defined in: types.ts:29
Icon size.
Should be a valid CSS unit value or a variable, i.e. 10px, 0.1em, var(--icon-size).
If undefined is passed, size won’t be changed.
Default
Section titled “Default”undefinedInherited from
Section titled “Inherited from”src:
string
Defined in: types.ts:59
Svg source, i.e. result of import "/my/icon.svg"