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/iconpnpm add @ikun-ui/iconbash
yarn add @ikun-ui/iconyarn add @ikun-ui/iconbash
npm install @ikun-ui/iconnpm 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.
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 | any | {} | Additional attributes |