ant-design-rescript · GitHub

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

Releases

Packages

Used by

Contributors

Languages

Read the original on github.com ↗