Skip to content

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
bash
yarn add @ikun-ui/icon
bash
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.

Customizable icon color

Define icon color using background style, customize a multi-color icon. In addition, it will cover color.

Icon Props

NameTypeDefaultDescription
iconstring-The class name of the icon, following the unocss standard
btnbooleanfalseicon as button
widthstring24pxIcon's width
heightstring24pxIcon's height
colorstring-Icon's color
clsstring-Additional class
attrsRecord<string, string>{}Additional attributes

MIT Licensed