koi-icons
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Introduction

Version License Build Status Test Coverage

🔶 Explore the docs » Join us

The abstract trees of the kui iconfont icons.

Get Started

Use npm to install.

npm i koi-icon

Font icon files need to be introduced before use

import "koi-icon/lib/index.css"

Componentization, using the class of iconfont as the component name.

<template>
    <AlignCenterIcon></AlignCenterIcon>
    <DiamondIcon></DiamondIcon>
</template>

<script lang="ts" setup>
import { AlignCenterIcon, DiamondIcon } from 'koi-icon';
</script>

Traditionally, components are rendered by passing class through type.

<template>
  <!-- 动态图标 -->
  <KIcon type="koi-icon-not-found"></KIcon>
  <KIcon type="koi-icon-diamond"></KIcon>
</template>

<script lang="ts" setup>
import { KIcon } from 'koi-icon';
</script>

Readme

Keywords

Package Sidebar

Install

npm i koi-icons

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

467 kB

Total Files

10

Last publish

Collaborators

  • elcker