Icon
Displays a single icon with configurable size and accessibility labeling.
Notes
- Block name:
bcgov-wordpress-blocks/icon - Category:
media - Intended use: visual icon element in content layouts
Attributes
iconId(string): selected icon identifiericonSize(string, defaultmedium): display sizeisDecorative(boolean, defaultfalse): whether assistive tech should ignore the iconaccessibleName(string): accessible text label when icon is not decorative
Accessibility
- When
isDecorativeistrue, the icon should not require an accessible name. - When
isDecorativeisfalse, provide a meaningfulaccessibleName.