Anatomy
Icon component shown with an Add icon asset. Inspect the HTML to see the props. Or use a screen reader to read the label.
- Container
- Icon glyph
- Label Visually Hidden
Options
Size
The size
can be 100
, 150
, or 200
. The size sets the width and height of the SVG.
Label
The label
is required for screen readers. It is used to describe the icon to screen readers. It is also used as the aria-label
for the icon. It is recommended to use a short, descriptive label. For example, "Go to Next Page".
API Reference
Prop | Description | Type | Default | Required |
---|---|---|---|---|
size | enum number | 100 | 150 | 200 | 100 | False | |
label | string | ---- | True | |
className | string | False |