0.0.3 • Published 11 months ago

koi-icons v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Introduction

🔶 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>
0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

1 year ago