Skip to content

Pyroboomka/antdfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Todo

Made this installable package. But I don't know how to do this :)

Why?

Because formik is nice, and I got tired of rc-form.

How?

See storybook or example code

API

Prop Description Type Default Required
name Field in your form string true
element Element, which will be used to get user input ReactNode <Input />
onChange custom onChange handler function
onBlur custom onBlur handler function
hidden render hidden input. useful for things like ids Boolean false
label Label text string|ReactNode
layout customize layout of Form.Item. Will be spread as wrapperCol and labelCol prop Object
required add a required asterisk. purely visual!

Releases

No releases published

Packages

No packages published