actions-heart

Introduced in v1.10.0
Available in TYPO3 10.4 11.5

Buttons

Button Label Button Label

Button Label Button Label

Usage

Markup

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill="currentColor"><path d="M11.5 3C12.855 3 14 4.145 14 5.5c0 2.122-3.615 5.416-5.352 6.999-.242.221-.461.421-.648.595-.189-.177-.407-.375-.648-.595C5.615 10.916 2 7.622 2 5.5 2 4.145 3.145 3 4.5 3a2.976 2.976 0 0 1 2.606 1.447l.876 1.733.908-1.724A2.973 2.973 0 0 1 11.5 3m0-1C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z"/></g></svg>

Inline

<span class="icon icon-size-small icon-state-default">
    <span class="icon-markup">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill="currentColor"><path d="M11.5 3C12.855 3 14 4.145 14 5.5c0 2.122-3.615 5.416-5.352 6.999-.242.221-.461.421-.648.595-.189-.177-.407-.375-.648-.595C5.615 10.916 2 7.622 2 5.5 2 4.145 3.145 3 4.5 3a2.976 2.976 0 0 1 2.606 1.447l.876 1.733.908-1.724A2.973 2.973 0 0 1 11.5 3m0-1C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z"/></g></svg>
    </span>
</span>

Sprite

<span class="icon icon-size-small icon-state-default">
    <span class="icon-markup">
        <svg role="img"><use xlink:href="dist/sprites/actions.svg#actions-heart" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="actions-heart" size="small" />

CSS Background Image

.myclass {
    background-size: 1em 1em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cg fill='%23fff'%3e%3cpath d='M11.5 3C12.855 3 14 4.145 14 5.5c0 2.122-3.615 5.416-5.352 6.999-.242.221-.461.421-.648.595-.189-.177-.407-.375-.648-.595C5.615 10.916 2 7.622 2 5.5 2 4.145 3.145 3 4.5 3a2.976 2.976 0 0 1 2.606 1.447l.876 1.733.908-1.724A2.973 2.973 0 0 1 11.5 3m0-1C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z'/%3e%3c/g%3e%3c/svg%3e");
}

Sass Background Variable

@import "@typo3/icons/dist/icons.scss";
@import "@typo3/icons/dist/scss/icons-variables-actions.scss";

.myclass {
    background-size: 1em 1em;
    background-image: $icon-actions-heart;
}

Download

Download