kor TürkçeGitHub

Icon

Renders a Kor icon or a UI5 icon URI.

kor/ui/IconSource

When to use

  • Support a label with a familiar visual cue or give a standalone icon an accessible description.

Examples

A decorative icon

Loading the example

<k:Stack row="true" gap="8" align="center">
	<k:Icon name="truck" size="20"/>
	<k:Text text="Delivery by road"/>
</k:Stack>

Use a UI5 icon

Loading the example

<k:Stack row="true" gap="8" align="center">
	<k:Icon name="sap-icon://attachment" size="24" alt="Attachment"/>
	<k:Text text="packing-slip.pdf"/>
</k:Stack>

Kor icon names

API

Properties

NameTypeDefaultDescription
namestringKor icon name or sap-icon:// URI
sizeint18Size in pixels
altstringAccessible description. Leave empty for decorative icons

Related

ButtonStatus