@ant-design-rescript/icons

0.0.3 • Public • Published

@ant-design-rescript/icons

ReScript bindings for @ant-design/icons

Getting Started

  1. Add this to your package.json:
yarn add @ant-design-rescript/icons
  1. Add this to your bsconfig.json
"bs-dependencies": [
  "@rescript/react",
  "@ant-design-rescript/icons"
]

Example Usage

Outlined

open AntDesignRescriptIcons.Icons

@react.component
let make = () => {
  <Outlined.Star />
}

Filled

open AntDesignRescriptIcons.Icons

@react.component
let make = () => {
  <Filled.Star />
}

TwoTone

open AntDesignRescriptIcons.Icons

@react.component
let make = () => {
  <TwoTone.Star twoToneColor="#eb2f96" />
}

Package Sidebar

Install

npm i @ant-design-rescript/icons

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

187 kB

Total Files

9

Last publish

Collaborators

  • limit-liu