form-file-upload

Introduced in v1.5.0
Available in TYPO3 9.5 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"><path fill="#FFF" d="M2 1h12v10H2z"/><path fill="#B9B9B9" d="M13 2v8H3V2h10m1-1H2v10h12V1z"/><path fill="#FFF" d="M1 10h14v5H1z"/><path fill="#999" d="M14 11v3H2v-3h12m1-1H1v5h14v-5z"/><path fill="#666" d="M12 12h1v1h-1zM10 12h1v1h-1zM11.3 8H4.7c-.2 0-.3-.3-.2-.4l3.3-3.7c.1-.1.3-.1.4 0l3.3 3.7c.1.1 0 .4-.2.4zM7 8h2v2H7z"/></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"><path fill="#FFF" d="M2 1h12v10H2z"/><path fill="#B9B9B9" d="M13 2v8H3V2h10m1-1H2v10h12V1z"/><path fill="#FFF" d="M1 10h14v5H1z"/><path fill="#999" d="M14 11v3H2v-3h12m1-1H1v5h14v-5z"/><path fill="#666" d="M12 12h1v1h-1zM10 12h1v1h-1zM11.3 8H4.7c-.2 0-.3-.3-.2-.4l3.3-3.7c.1-.1.3-.1.4 0l3.3 3.7c.1.1 0 .4-.2.4zM7 8h2v2H7z"/></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/form.svg#form-file-upload" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="form-file-upload" 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%3cpath fill='%23FFF' d='M2 1h12v10H2z'/%3e%3cpath fill='%23B9B9B9' d='M13 2v8H3V2h10m1-1H2v10h12V1z'/%3e%3cpath fill='%23FFF' d='M1 10h14v5H1z'/%3e%3cpath fill='%23999' d='M14 11v3H2v-3h12m1-1H1v5h14v-5z'/%3e%3cpath fill='%23666' d='M12 12h1v1h-1zM10 12h1v1h-1zM11.3 8H4.7c-.2 0-.3-.3-.2-.4l3.3-3.7c.1-.1.3-.1.4 0l3.3 3.7c.1.1 0 .4-.2.4zM7 8h2v2H7z'/%3e%3c/svg%3e");
}

Sass Background Variable

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

.myclass {
    background-size: 1em 1em;
    background-image: $icon-form-file-upload;
}

Download

Download