Skip to content

content-button

Tags: call to action, cta, link, click, action, form element

Buttons

Button Label Button Label

Usage

Icon Identifier

content-button

Markup

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#59f" d="M1 6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2Z"/><path fill="#fff" d="M4 7h8v2H4Z"/></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="#59f" d="M1 6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2Z"/><path fill="#fff" d="M4 7h8v2H4Z"/></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/content.svg?v=1792707318708#content-button" /></svg> </span> </span>

TYPO3 ViewHelper

<core:icon identifier="content-button" size="small" />

TYPO3 Web Component

<typo3-backend-icon identifier="content-button" size="small"></typo3-backend-icon>

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='%2359f' d='M1 6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2Z'/%3e%3cpath fill='%23fff' d='M4 7h8v2H4Z'/%3e%3c/svg%3e"); }

Sass Background Variable

@use "@typo3/icons/dist/icons" as *; @use "@typo3/icons/dist/scss/icons-variables-content" as *; .myclass { background-size: 1em 1em; background-image: $icon-content-button; }

Download

Download SVG