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

0.0.25 • Public • Published

Ant Design Icons for Omi

NPM version NPM downloads

English | 简体中文

All Icons

https://w-xuefeng.github.io/antd-omi-icons/

Install with yarn (or npm)

yarn add antd-omi-icons --save

or

npm install antd-omi-icons --save

Basic Usage

First, you should add the icons that you need into the library.

import { WeElement, h, tag } from 'omi'
import 'antd-omi-icons/lib/es/icons/AccountBookFilled'

After that, you can use antd icons in your Omi components as simply as this:

<o-account-book-filled />

Meanwhile, you can also import it by specific name like this

import { AccountBookFilled } from 'antd-omi-icons/lib/es/icons'

or

import AccountBookFilled from 'antd-omi-icons/lib/es/icons/AccountBookFilled'

then use it as this:

<AccountBookFilled />

If your project moudle type is commonjs, replace es with cjs in the path when you using require.

If you want to import the full amount of icons, you can do as follows

Package Sidebar

Install

npm i antd-omi-icons

Weekly Downloads

1

Version

0.0.25

License

MIT

Unpacked Size

7.78 MB

Total Files

3196

Last publish

Collaborators

  • w-xuefeng