Icon
<k-icon>
The icon component can be used to display any icon from our own icon set.
Available icons
Props
alt
String
For better accessibility of icons, you can pass an additional alt attribute like for images.
back
String
Like with the k-image
component, you can set the background for the icon. By default, the background is transparent. Here are the available back
options:
black
white
pattern
emoji
Boolean (default: false)
You can pass an emoji as icon type, but in this case you also have to set :emoji="true"
in order to display the emoji correctly.
size
String
By default the icon size is set to 1rem = 16px
, which corresponds with the Panel font size. Additional sizes are:
regular
1rem = 16px
medium
2rem = 32px
large
3rem = 48px
type
String
Select the icon with this attribute.
CSS class
.k-icon