@ant-design-rescript/icons
v0.0.3
Published
ReScript bindings for @ant-design/icons
Downloads
43
Maintainers
Readme
@ant-design-rescript/icons
ReScript bindings for @ant-design/icons
Getting Started
- Add this to your
package.json
:
yarn add @ant-design-rescript/icons
- 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" />
}