Last updated
Last updated
We have implemented custom SVG icons along with Tabler fill and stroke icons using the SVGSprite method.
name
string
Keep always Svg ID value = name of icon value
size
number
(optional)
Adjusts the size of the SVG icon. The default size is set to 24
type
IconType
Currently, the default value is IconType.STROKE
set for the tabler outline icon. Another type is IconType.FILL
for tabler fill icon & IconType.CUSTOM
for custom icon svg adding
color
string
(optional)
To change color of the svg icon
stroke
number
(optional)
Adjusts the stroke width of the SVG icon. This prop is not applied when the icon type is IconType.FILL
.
twoToneColor
string
(optional)
To change seondary color of the svg icon which is only used in IconType.CUSTOM
icon type or twotone icon