KIcon
Thanks to unocss capabilities, any Iconify icon can be used in ikun-ui.
Use any icons with Pure CSS for ikun-ui.
For more icon information view @unocss/preset-icons
Install
bash
pnpm add @ikun-ui/iconbash
yarn add @ikun-ui/iconbash
npm install @ikun-ui/iconIcon Collection
Get all icons, try on icones
![]()
![]()
Basic usage
Use the icon attribute to define Icon. In addition,the color attribute can be used to set the color of the icon.
Customizable icon color
Define icon color using background style, customize a multi-color icon. In addition, it will cover color.
Icon Props
| Name | Type | Default | Description |
|---|---|---|---|
| icon | string | - | The class name of the icon, following the unocss standard |
| btn | boolean | false | icon as button |
| width | string | 24px | Icon's width |
| height | string | 24px | Icon's height |
| color | string | - | Icon's color |
| cls | string | - | Additional class |
| attrs | Record<string, string> | {} | Additional attributes |