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/icon
pnpm add @ikun-ui/icon
bash
yarn add @ikun-ui/icon
yarn add @ikun-ui/icon
bash
npm install @ikun-ui/icon
npm install @ikun-ui/icon
Icon 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 |