# @react-formless/antd

> ant-design render map for @react-formless/core

Latest version **1.14.0** (published 2021-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-formless/antd
pnpm add @react-formless/antd
yarn add @react-formless/antd
bun add @react-formless/antd
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.14.0 |
| Published | 2021-01-22 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Grzegorz Moskal |
| Maintainers | gmoskal |

## Links

- npm: https://www.npmjs.com/package/@react-formless/antd
- Repository: https://github.com/gmoskal/react-formless/tree/master/packages/antd
- Homepage: https://github.com/gmoskal/react-formless/tree/master/packages/antd/README.md
- Issues: https://github.com/gmoskal/react-formless/issues
- npm.io page: https://npm.io/package/@react-formless/antd

## Dependencies (5)

- [antd](https://npm.io/package/antd.md) 3.26.9
- [less](https://npm.io/package/less.md) 2.7.2
- [less-loader](https://npm.io/package/less-loader.md) ^5.0.0
- [@react-formless/core](https://npm.io/package/@react-formless/core.md) ^1.14.0
- [@react-formless/utils](https://npm.io/package/@react-formless/utils.md) ^1.13.1

## Recent versions

- 1.14.0 (latest) — 2021-01-22
- 1.13.1 — 2020-11-03
- 1.13.0 — 2020-09-10
- 1.12.3 — 2020-08-28
- 1.12.2 — 2020-08-28
- 1.12.1 — 2020-08-28
- 1.11.0 — 2020-08-26
- 1.10.3 — 2020-08-24
- 1.10.1 — 2020-07-30
- 1.10.0 — 2020-07-24
- 1.9.4 — 2020-07-08
- 1.9.3 — 2020-05-14
- 1.9.2 — 2020-05-14
- 1.9.1 — 2020-05-08
- 1.9.0 — 2020-05-07
- … 25 more at https://npm.io/package/@react-formless/antd/versions

## README

# @react-formless/antd

![tests status](https://github.com/gmoskal/react-formless/workflows/CI/badge.svg)

> Ant Design render map for `@react-formless/core`.

Check custom renderers in [action](https://gmoskal.github.io/react-formless/)

```typescript
import * as React from "react"

import { useFormHook, FormView, FormSchema } from "@react-formless/core"
import { antDesignRenderMap } from "@react-formless/antd"

export type Car = { make: string }

const carMakes: Array<[string, string]> = [
    ["Tesla", "tesla-id"],
    ["Honda", "honda-id"],
    ["BMW", "bmw-id"]
]

const schema: FormSchema<Car> = { make: { type: "select", values: carMakes } }

export const AntDesignForm: React.FC = () => {
    const { formViewProps } = useFormHook({ schema })
    return <FormView {...formViewProps} inputsRenderMap={antDesignRenderMap} />
}
```

Checkout [full example](https://github.com/gmoskal/react-formless/blob/master/packages/examples/src/custom-renderers/index.tsx)

## Install

Using npm:

```sh
npm i --save-dev @react-formless/antd
```

or using yarn:

```sh
yarn add @react-formless/antd --dev
```

For more in depth documentation see [@react-formless](https://github.com/gmoskal/react-formless).

---
_Source: https://npm.io/package/@react-formless/antd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
