<svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg>
Try it yourself on the playground
PlaygroundYou can pick an icon from the library we provide.
The ID of the icon is prefixed with its set: for example, the ID of the "audio" icon from the "general" set is general--audio
.
Note: display of icons on Internet Explorer is made possible by the use of svg4everybody
Color
You can use the default, primary or inverted colours:
<svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--primary">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--inverted">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg>
Try it yourself on the playground
PlaygroundSize
You can change the size of the icon by applying one of the following classes:
ecl-icon--xs
: 16×16ecl-icon--s
: 20×20ecl-icon--m
: 24×24ecl-icon--l
: 32×32ecl-icon--xl
: 40×40ecl-icon--2xl
: 48×48ecl-icon--fluid
: 1em
<svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--xs">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--s">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--l">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--xl">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--2xl">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--fluid">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg>
Try it yourself on the playground
PlaygroundRotate icons
You can rotate icons by adding one of the following classes:
ecl-icon--rotate-0
: 0 degreeecl-icon--rotate-90
: 90 degreesecl-icon--rotate-180
: 180 degreesecl-icon--rotate-270
: 270 degrees
<svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--rotate-0">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--rotate-90">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--rotate-180">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--rotate-270">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg>
Try it yourself on the playground
PlaygroundFlip icons
You can flip icons by adding the classes ecl-icon--flip-horizontal
or ecl-icon--flip-vertical
.
<svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--flip-horizontal">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg><svg focusable="false" aria-hidden="true" class="ecl-icon ecl-icon--m ecl-icon--flip-vertical">
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg>
Try it yourself on the playground
PlaygroundAccessibility
If your icon is only used as a decorative element, you don't have to add any special markup.
On the other hand, if it's used as an image, you might want to add a couple of extra markup:
<svg focusable="false" aria-hidden="false" aria-labelledby="example-title example-desc" role="img"
class="ecl-icon ecl-icon--m">
<title id="example-title">Title</title>
<desc id="example-desc">Description</desc>
<use xlink:href="/dist/media/icons.db866e2e.svg#general--audio"></use>
</svg>
Try it yourself on the playground
Playground