formik-office-ui-fabric-react
💉 Instant pain reliever for using Formik with Office UI Fabric React 💉
Why?
To reduce the boilerplate code needed to get Fabrics input components work seamlessly with Formiks field props and validation errors.
How?
- Install package
yarn add formik-office-ui-fabric-react# or npm install --save formik-office-ui-fabric-react
- Replace
FooComponent
withFormikFooComponent
or use themapFieldToFooComponent
, i.e
// using the component // or using the map function
Documentation
- For a complete list of all supported components, see the Storybook
- Try it out: Code Sandbox
Development
git clone https://github.com/kmees/formik-office-ui-fabric-react
cd formik-office-ui-fabric-react && yarn install
Running development server
yarn start
Running tests
yarn test