This repository was archived by the owner on Aug 23, 2022. It is now read-only.
v0.6.1
- Added support for custom component wrappers in
<Field component={...}>
: 48123c0 - Automatic wrapping of
<Field>
in a<div>
ifclassName="..."
is specified
// Will not render a 'div' wrapper
<Field model="...">
<input />
</Field>
// Will render a 'div' wrapper because of 'className'
<Field model="..." className="field six wide">
<input />
</Field>
// Will also render a 'div' wrapper
<Field model="..." component="div">
<input />
</Field>
// Will render a View wrapper (useful for React Native)
<Field model="..." component={View}>
<input />
</Field>