Skip to content

Function: svgPathToIconValue()

ts
function svgPathToIconValue(
  d: string,
  width?: string | number,
  height?: string | number,
): IconValue;

Converts an SVG path string to an IconValue that can be used in Vuetify components.

Parameters

ParameterTypeDescription
dstringThe SVG path data string
width?string | numberOptional width for the icon
height?string | numberOptional height for the icon

Returns

IconValue

An IconValue that can be passed to Vuetify icon props