antd-redux-form

redux-form fields with ant design

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
014Jun 16, 2021Mar 15, 2018Minified + gzip package size for antd-redux-form in KB

Readme

antd-redux-form

Example

Go to https://minvs1.github.io/antd-redux-form/ to check for examples

Usage

import React from 'react'
import { Form } from 'antd'
import { Field, reduxForm } from 'redux-form'
import { InputField } from 'antd-redux-form'

const AddAccount = () => {
  const handleSubmit = values => {}

  return (
    <Form onSubmit={handleSubmit}>
      <Field
        component={InputField}
        label="Username"
        name="account[username]"
        type="text"
      />
    </Form>
  )
}

const AddAccountFormed = reduxForm({
  form: 'form',
})(AddAccount)

ReactDOM.render(
  <AddAccountFormed />,
  document.getElementById('root')
)

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.