Etch component
Icon 1
Documentation
An icon, alone, as a link or as a button. It uses ACSS's icon framework for its size, style and colors.
How to use it
- Pick the icon with Source. MAC icons load by path, such as
/wp-content/uploads/mac-icon-line-arrow-chevron-down.svg, so a pasted icon works on any site that has the icon set. - Styles sets the Size (xs to xl) and the Style: naked or boxed.
- Add a Link to make it a link, or turn on Button for a button that opens a drawer or runs a script. Then set Label: it's the name screen readers read.
Good to know
- A plain icon is hidden from screen readers, because it's decorative.
- For social links, use it with a Link and a Label, boxed at size s, as MAC Footer 1 and MAC Subheader 1 do.
- A link that opens in a new tab, as Rank Math makes external links on a live site, says so to screen readers: they hear "(opens in a new tab)" after the Label. The text is in the component's script, so for a site in another language edit it there, once for the site.
Reference
Read from the component's JSON, so it's always current.
Loading the reference