0.0.3 • Published 1 year ago

@ant-design-rescript/icons v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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" />
}