{"id":17056742,"url":"https://github.com/domino987/material-table-formik","last_synced_at":"2025-04-12T17:33:53.627Z","repository":{"id":42130041,"uuid":"238048732","full_name":"Domino987/material-table-formik","owner":"Domino987","description":"A material-table wrapper to display a dialog for add, edit and delete. It also allows Formik/YUP validation.","archived":false,"fork":false,"pushed_at":"2023-01-07T04:57:28.000Z","size":3075,"stargazers_count":8,"open_issues_count":23,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T11:51:09.528Z","etag":null,"topics":["formik","material-table","material-ui","react","yup"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/material-table-formik","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/Domino987.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":"2020-02-03T19:52:44.000Z","updated_at":"2025-03-12T22:00:40.000Z","dependencies_parsed_at":"2023-02-06T12:30:24.956Z","dependency_job_id":null,"html_url":"https://github.com/Domino987/material-table-formik","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Domino987%2Fmaterial-table-formik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Domino987%2Fmaterial-table-formik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Domino987%2Fmaterial-table-formik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Domino987%2Fmaterial-table-formik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Domino987","download_url":"https://codeload.github.com/Domino987/material-table-formik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605593,"owners_count":21132198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","material-table","material-ui","react","yup"],"created_at":"2024-10-14T10:25:26.381Z","updated_at":"2025-04-12T17:33:53.602Z","avatar_url":"https://github.com/Domino987.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Material Table Core Formik with Dialogs\n\nThis package is a simple wrapper for [material-table-core](https://github.com/material-table-core/core).\n\nIt displays dialogs instead of the inline edit for the Add, Update and Delete actions.\n\nAdditionally, it allows the validation with [Formik](https://github.com/jaredpalmer/formik) and [YUP](https://github.com/jquense/yup) for these actions as well.\n\n## Now with Grid Support\n\nAdd [Mui Grid Props](https://mui.com/api/grid/) with gridProps to the columns to order the edit fields within the dialog.\n\n```\ngridProps: { xs: 12, md: 6 }\n```\n\n## Screenshot\n\n![Example Display](screenshot.png)\n\n## Requirement\n\nTo use material-table-formik, you must use react@17.2.0 or greater which includes hooks.\n\n## Installation\n\nThis package is distributed via [npm](https://www.npmjs.com/package/material-table-formik).\n\n```\n$ yarn add material-table-formik\n# or\n$ npm install --save material-table-formik\n```\n\n## Getting Started\n\nSimply exchange the material table import:\n\n```\nimport MaterialTable from \"material-table-core\";\n```\n\nwith\n\n```\nimport MaterialTable from \"material-table-formik\";\n```\n\nThis will display the edit/update/delete action in a separate dialog instead inline.\n\n## Props\n\nIn addition to the material table props, it also accepts these optional props:\n\n| Name              | Type                                                                  | Description                                                                                  |\n| ----------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |\n| validate          | (value: RowData) =\u003e void \\| object \\| Promise\u003cFormikErrors\u003cRowData\u003e\u003e; | The Formik validation to be applied to each field                                            |\n| validationSchema  | any \\| (() =\u003e any)                                                    | The YUP validation schema                                                                    |\n| localization      | deleteHeader?: string \u003cbr\u003e deleteAction?: string                      | The added localizations for the dialog                                                       |\n| columns.gridProps | [Material-ui Grid Props](https://material-ui.com/api/grid/)           | The columns are extended to allow grid props for positioning of the fields within the dialog |\n\n## Author\n\n- [Dominik Engel](https://github.com/Domino987)\n\nThis project follows the all-contributors specification. Contributions of any kind welcome!\n\nBuilt with [TSDX](https://github.com/jaredpalmer/tsdx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomino987%2Fmaterial-table-formik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomino987%2Fmaterial-table-formik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomino987%2Fmaterial-table-formik/lists"}