Skip to content

getSvgIconStyle

getSvgIconStyle(props): Record<string, string>

Defined in: svg-icon.ts:15

Converts SvgIcon props into a key-value pairs that should be passed to the element’s style attribute.

Keys format:

  1. CSS variables are in snake case: --var-name.
  2. CSS properties are in camel case: minWidth.

SvgIconStyleProps

SvgIcon props

Record<string, string>

Style map