Icons
Default
Large (24px)
Small (14px)
Extra large (32px)
Color primary
Color white
icon with badge
-
69
-
{% include "@Components/icon/icon.twig" with {props: { src: "images/svg/mail.svg", title: "Email", badge: { title: "69", }, }} %} -
<span class="icon"> <img src="images/svg/mail.svg" alt="Email" loading="lazy"> <div class="icon__badge"> <div class="badge --red --small"> <span class="badge__title">69</span> </div> </div> </span>
Schema
{
"props": {
"src": {
"type": "string",
"description": "path to icon"
},
"color": {
"type": "string",
"description": "black (default) | primary | white"
},
"tag": {
"type": "string",
"description": "div | span (default)"
},
"size": {
"type": "string",
"description": "xl | lg | sm | xs"
},
"extraClass": {
"type": "string",
"description": "Addiotional class to the component"
}
}
}