react-ocean-forms-react-intl
works with react-ocean-forms
to enable react-intl
support in the forms.
API Documentation and Showcase
- Plug and play extension for multi-language support
npm install react-ocean-forms-react-intl
yarn add react-ocean-forms-react-intl
Simply swap out any existing Form
references with IntlForm
from this package.
import { IntlForm } from 'react-ocean-forms-react-intl';
Then replace the existing form tags.
<IntlForm onSubmit={this.handleSubmit}>
<Input
name="name"
label="demo_name"
/>
<button type="submit">Submit</button>
</IntlForm>
IntlForm passes all props to Form
. You can find a detailed documentation
in the react-ocean-forms repository.