Skip to content

1.2.00

Compare
Choose a tag to compare
@pedro-lb pedro-lb released this 15 Apr 21:17
· 269 commits to master since this release

🔥 Single-choice and multiple-choice input groups are here!

  • You can use FormInputGroup and FormInputGroupItem components to easily setup choice components in your form!
  • You can use the multi prop in FormInputGroup to make the result an array and auto-validate selected options.
  • You can use the initialValue prop in FormInputGroup to set initial checked items.

Here's an example:

<FormInputGroup name="gender">
  <p>What's your gender?</p>

  <FormInputGroupItem value="Male" />
  <FormInputGroupItem value="Female" />
  <FormInputGroupItem value="Non-binary" />
</FormInputGroup>