Features
- This block can have an icon or not. This icon is configurable through the admin panel.
Attributes
- iconPosition (left or right)
- tagName (button or a) default button
- text (string)
- icon (SVG)
- URL (string)
Structure
The root element will be an “a” or a “button” HTML element. It consists of 2 (3?) children. One (Two?) “span” HTML element(s?) as a container(s?) for an icon(s?) and a “span” HTML element for the content.
<[a | button]>
<span><icon /></span>
<span>{text}</span>
<span><icon /></span>
</[a | button]>