react-ocean-forms-react-intl
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

react-ocean-forms-react-intl

npm GitHub license travis Greenkeeper badge Coverage Status

react-ocean-forms-react-intl works with react-ocean-forms to enable react-intl support in the forms.

API Documentation and Showcase

Features

  • Plug and play extension for multi-language support

Install

npm install react-ocean-forms-react-intl

yarn add react-ocean-forms-react-intl

Usage

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.

Package Sidebar

Install

npm i react-ocean-forms-react-intl

Weekly Downloads

2

Version

2.0.4

License

MIT

Unpacked Size

38 kB

Total Files

12

Last publish

Collaborators

  • christophka
  • j3ernhard
  • maschino
  • thomas-eaa
  • whuimann