form-image-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="M10 10H4l1.5-2.5L7 5l1.5 2.5L10 10z"/><path fill="#666" d="M12 10H6.7L8 8.3l1.3-1.7 1.3 1.7L12 10z"/><circle cx="11" cy="4" r="1" fill="#666"/><path fill="#666" d="M12 12h1v1h-1zM10 12h1v1h-1z"/></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="M10 10H4l1.5-2.5L7 5l1.5 2.5L10 10z"/><path fill="#666" d="M12 10H6.7L8 8.3l1.3-1.7 1.3 1.7L12 10z"/><circle cx="11" cy="4" r="1" fill="#666"/><path fill="#666" d="M12 12h1v1h-1zM10 12h1v1h-1z"/></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-image-upload" /></svg>
</span>
</span>
TYPO3 ViewHelper
<core:icon identifier="form-image-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='M10 10H4l1.5-2.5L7 5l1.5 2.5L10 10z'/%3e%3cpath fill='%23666' d='M12 10H6.7L8 8.3l1.3-1.7 1.3 1.7L12 10z'/%3e%3ccircle cx='11' cy='4' r='1' fill='%23666'/%3e%3cpath fill='%23666' d='M12 12h1v1h-1zM10 12h1v1h-1z'/%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-image-upload;
}