Icon
Renders a Kor icon or a UI5 icon URI.
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
activityarrow-downarrow-leftarrow-rightarrow-uparrow-up-rightbanbellblocksbook-openboxcalendarcalendar-rangechart-no-axes-columncheckcheck-checkchevron-downchevron-leftchevron-rightchevrons-up-downcirclecircle-alertcircle-checkcircle-dashedcircle-dotcircle-xclockcolumns-3commandcopycorner-down-leftcredit-carddownloadellipsisexternal-linkeyefactoryfile-textfunnelgit-branchgrip-verticalhand-coinshouseinboxinfokanbankeylandmarklanguageslayerslayout-gridlinklistlockmailmap-pinmenumessage-squareminusmoonoctagon-alertpackagepackage-checkpalettepanel-leftpanel-rightpaperclippencilplayplusprinterreceiptrefresh-cwroutesavesearchsendsettingsshield-checksliders-horizontalsparklessquare-check-bigstarsuntable-2timertrash-2trending-downtrending-uptriangle-alerttruckundo-2uploaduseruserswalletwarehousewavesworkflowxzap
API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
name | string | Kor icon name or sap-icon:// URI | |
size | int | 18 | Size in pixels |
alt | string | Accessible description. Leave empty for decorative icons |