0.0.8 • Published 1 day ago

@ant-design-rescript/components v0.0.8

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

@ant-design-rescript/components

ReScript bindings for antd

Getting Started

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

Example Usage

Button

open AntDesignRescriptComponents.Components

@react.component
let make = () => {
  <Button loading={Button.BoolOrObject.object({delay: 1.})}>
    {"Cancel"->React.string}
  </Button>
}

with @ant-design/icons

yarn add @ant-design-rescript/icons

bsconfig.json

"bs-dependencies": [
  "@rescript/react",
  "@ant-design-rescript/components",
  "@ant-design-rescript/icons"
]
open AntDesignRescriptIcons.Icons
open AntDesignRescriptComponents.Components

@react.component
let make = () => {
  <Button type_=#primary icon={<Outlined.Upload />}>
    {"Upload"->React.string}
  </Button>
}

Locale

open AntDesignRescriptComponents.Locales

@react.component
let make = () => {
  <ConfigProvider locale={zh_CN}>
    <App />
  </ConfigProvider>
}
0.0.8

1 day ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.1

1 year ago