Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

v0.6.1

Compare
Choose a tag to compare
@davidkpiano davidkpiano released this 21 Feb 19:54
· 1487 commits to master since this release
  • Added support for custom component wrappers in <Field component={...}>: 48123c0
  • Automatic wrapping of <Field> in a <div> if className="..." 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>