Skip to content

SvgIconProps

Defined in: types.ts:55

Props of <SvgIcon> component

optional color: 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.

undefined

SvgIconStyleProps.color


optional colorTransition: 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.

"0.3s linear"

SvgIconStyleProps.colorTransition


optional size: 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.

undefined

SvgIconStyleProps.size


src: string

Defined in: types.ts:59

Svg source, i.e. result of import "/my/icon.svg"