{"id":45004926,"url":"https://github.com/kevicency/formik-office-ui-fabric-react","last_synced_at":"2026-06-08T12:04:21.461Z","repository":{"id":57240547,"uuid":"160363429","full_name":"kevicency/formik-office-ui-fabric-react","owner":"kevicency","description":"💉 Instant pain reliever for using Formik with Office UI Fabric React 💉","archived":false,"fork":false,"pushed_at":"2018-12-12T16:29:46.000Z","size":8130,"stargazers_count":42,"open_issues_count":3,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-02-19T01:27:39.585Z","etag":null,"topics":["formik","office-ui-fabric","office-ui-fabric-react","react"],"latest_commit_sha":null,"homepage":"https://kmees.github.io/formik-office-ui-fabric-react","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevicency.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-04T13:40:40.000Z","updated_at":"2023-06-15T12:13:48.000Z","dependencies_parsed_at":"2022-09-05T07:51:40.824Z","dependency_job_id":null,"html_url":"https://github.com/kevicency/formik-office-ui-fabric-react","commit_stats":null,"previous_names":["kevicency/formik-office-ui-fabric-react","kmees/formik-office-ui-fabric-react"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/kevicency/formik-office-ui-fabric-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevicency%2Fformik-office-ui-fabric-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevicency%2Fformik-office-ui-fabric-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevicency%2Fformik-office-ui-fabric-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevicency%2Fformik-office-ui-fabric-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevicency","download_url":"https://codeload.github.com/kevicency/formik-office-ui-fabric-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevicency%2Fformik-office-ui-fabric-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34061126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formik","office-ui-fabric","office-ui-fabric-react","react"],"created_at":"2026-02-18T22:47:31.657Z","updated_at":"2026-06-08T12:04:21.455Z","avatar_url":"https://github.com/kevicency.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/formik-office-ui-fabric-react.svg?style=flat)](https://www.npmjs.com/package/formik-office-ui-fabric-react) [![Build Status](https://dev.azure.com/kmees/formik-office-ui-fabric-react/_apis/build/status/kmees.formik-office-ui-fabric-react)](https://dev.azure.com/kmees/formik-office-ui-fabric-react/_build/latest?definitionId=1) [![Coverage Status](https://coveralls.io/repos/github/kmees/formik-office-ui-fabric-react/badge.svg?branch=master)](https://coveralls.io/github/kmees/formik-office-ui-fabric-react?branch=master) [![npm](https://img.shields.io/npm/l/formik-office-ui-fabric-react.svg?style=flat)](https://www.npmjs.com/package/formik-office-ui-fabric-react) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier)\n\n# formik-office-ui-fabric-react\n\n\u003e 💉 Instant pain reliever for using Formik with Office UI Fabric React 💉\n\n## Why?\n\nTo reduce the boilerplate code needed to get [Fabrics input components](https://developer.microsoft.com/en-us/fabric#/components) work seamlessly with Formiks [field props](https://jaredpalmer.com/formik/docs/api/field) and validation errors.\n\n## How?\n\n1. Install package\n\n```bash\nyarn add formik-office-ui-fabric-react\n# or\nnpm install --save formik-office-ui-fabric-react\n```\n\n2. Replace `FooComponent` with `FormikFooComponent` or use the `mapFieldToFooComponent`, i.e\n\n```tsx\nimport { Formik, Form, Field } from 'formik'\nimport { DatePicker } from 'office-ui-fabric-react'\nimport { FormikDatePicker, mapFieldToDatePicker } from 'formik-office-ui-fabric-react'\n\nconst OldAndUgly = () =\u003e (\n  \u003cFormik initialValues={{ date: new Date() }}\u003e\n    \u003cForm\u003e\n      \u003cField\n        name=\"date\"\n        render={fieldProps =\u003e (\n          \u003cDatePicker\n            value={/* wrapper code for fieldProps.value */}\n            onSelectDate={/* wrapper code for fieldProps.onChange */}\n            {/* and more ugly wrapper code trying to get name, onBlur, etc. working */}\n          /\u003e\n        )}\n      /\u003e\n    \u003c/Form\u003e\n  \u003c/Formik\u003e\n)\n\n// using the component\nconst NewAndPretty = () =\u003e (\n  \u003cFormik initialValues={{ date: new Date() }}\u003e\n    \u003cForm\u003e\n      \u003cField name=\"date\" component={FormikDatePicker} /\u003e\n    \u003c/Form\u003e\n  \u003c/Formik\u003e\n)\n\n// or using the map function\nconst NewAndAlsoPretty = () =\u003e (\n  \u003cFormik initialValues={{ date: new Date() }}\u003e\n    \u003cForm\u003e\n      \u003cField name=\"date\" render={fieldProps =\u003e (\n        \u003cDatePicker {...mapFieldToDatePicker(fieldProps)} /\u003e\n      )} /\u003e\n    \u003c/Form\u003e\n  \u003c/Formik\u003e\n)\n```\n\n## Documentation\n\n- For a complete list of all supported components, see the [Storybook](https://kmees.github.io/formik-office-ui-fabric-react)\n- Try it out: [Code Sandbox](https://codesandbox.io/s/oo7q88p06)\n\n## Development\n\n###\n\n```\ngit clone https://github.com/kmees/formik-office-ui-fabric-react\ncd formik-office-ui-fabric-react \u0026\u0026 yarn install\n```\n\n### Running development server\n\n```\nyarn start\n```\n\n### Running tests\n\n```\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevicency%2Fformik-office-ui-fabric-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevicency%2Fformik-office-ui-fabric-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevicency%2Fformik-office-ui-fabric-react/lists"}