Components
AccessibleIcon
Code

AccessibleIcon

Makes icons accessible by adding a label


<AccessibleIcon>
 <svg {...} />
</AccessibleIcon>


Parameters

props

  • Type: @vtex/shoreline-components.AccessibleIconProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>

Props

children (optional)

  • Type: @types/react.React.ReactNode

label

Describe the icon

  • Type: @types/react.React.ReactNode

View source (opens in a new tab)