(react) react-hook-form Checkbox example

Our form elements needs to be usable with react-hook-form
This commit is contained in:
Romain Le Cellier
2023-07-26 16:52:49 +02:00
parent e3bf4cadf2
commit d506cab978
3 changed files with 121 additions and 46 deletions

View File

@@ -85,6 +85,15 @@ You can also define `state`, `text` props on the group component
<Story id="components-forms-checkbox--group-success"/>
</Canvas>
## Usage with react-hook-form
You can use this input with [react-hook-form](https://react-hook-form.com/docs)
<Canvas sourceState="shown">
<Story id="components-forms-checkbox--react-hook-form"/>
</Canvas>
### Props
<ArgTypes of={Checkbox} />