EN RU
Forum

Methodology

Technology

Toolbox

Libraries

Tutorials

DocumentationSource

icon

Use this block for creating an auxiliary graphical element in other blocks.

Overview

Custom fields of the block

Field Type Description
url String The address of the icon.
content BEMJSON, String Icon content in SVG format.

Block description

Use the icon block to create the auxiliary graphical element in other blocks.

The block is adapted to align with the baseline.

To create an independent image, use the image block.

The icon block could be declared through specific modifiers. For the examples below we implement modifiers on the service level called test.blocks of bem-components library.

Open in a new window
Open in a new window

Custom fields of the block

url field

Type: String.

Specifies the address of the icon.

Open in a new window

content field

Type: BEMJSON, String.

Specifies image content in SVG format.

Open in a new window
Open in a new window