1.2.00
🔥 Single-choice and multiple-choice input groups are here!
- You can use
FormInputGroup
andFormInputGroupItem
components to easily setup choice components in your form! - You can use the
multi
prop inFormInputGroup
to make the result an array and auto-validate selected options. - You can use the
initialValue
prop inFormInputGroup
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>