A inputgroup component that wraps checkboxes or radios and handles their state changes as one aggregate.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
| |||||||||||||||||||||||||||||||||||||||||||||
ref | object | | Ref to the component. |
- Since
- 1.1.15
Returns:
The InputGroup component.
- Type:
- JSX.
Element
Example
import InputGroup from '@gravityforms/components/react/admin/modules/InputGroup';
return (
<InputGroup
id="setup-wizard-form-types"
data={ [ { ...input1Data }, { ...input2Data } ] }
onChange={ () => { handleInputChange(); } }
useWrapper={ true }
/>
);