Skip to main content

Props

In addition to all the attributes that the svg component accepts (see MDN), Fleet Icons accepts the following additional props

PropDescriptionTypeDefault value
sizeAllows you to set the icon sizenumber or string1em
rotateAllows you to rotate the icon by a certain anglenumberundefined
spinnerAdd an infinite rotation animationbooleanundefined
titleAccessibility title for the iconstringundefined
descDescription of accessibility for the iconstringundefined
Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^