formik

formik

React表单开发利器

Formik是一个简化React表单开发的开源库。它提供直观的API来处理表单状态、验证和提交,支持复杂逻辑的同时保持代码简洁。由Jared Palmer和Ian White主导开发,Formik在开发者社区广受欢迎,被应用于众多React项目中。

FormikReact表单开源项目前端开发表单构建Github
<p align="center"> <img src="https://yellow-cdn.veclightyear.com/87312a0a/3e3c4243-ad35-4d57-ac88-b5129f279237.png" width="211" height="182" alt="Formik.js" /> </p> <h3 align="center"> 在React中构建表单,无需烦恼。 </h3> <br> [![稳定版本](https://yellow-cdn.veclightyear.com/87312a0a/565b51ef-bb28-45d4-98f8-7b4b799ac5ca.svg)](https://npm.im/formik) [![极速](https://badgen.now.sh/badge/speed/blazing%20%F0%9F%94%A5/green)](https://npm.im/formik) [![gzip大小](http://img.badgesize.io/https://unpkg.com/formik@latest/dist/formik.esm.js?compression=gzip)](https://unpkg.com/formik@latest/dist/formik.esm.js) [![许可证](https://badgen.now.sh/badge/license/Apache-2.0)](https://raw.githubusercontent.com/jaredpalmer/formik/main/LICENSE) [![Discord](https://yellow-cdn.veclightyear.com/87312a0a/c8d2c817-ad29-497f-8312-fbcb4707f260.svg?style=flat-square)](https://discord.gg/pJSg287) **访问 [https://formik.org](https://formik.org) 开始使用Formik。** ## 使用Formik的组织和项目 [使用Formik的组织和项目列表](https://github.com/jaredpalmer/formik/issues/87) ## 作者 - Jared Palmer [@jaredpalmer](https://twitter.com/jaredpalmer) - Ian White [@eonwhite](https://twitter.com/eonwhite) ## 贡献 这个monorepo使用`yarn`,所以首先你需要安装这个包管理器。 要运行E2E测试,你还需要设置Playwright,可以通过`npx playwright install`在本地完成。之后,运行`yarn start:app`,然后在另一个标签页中运行`yarn e2e:ui`来启动测试运行器。 当你完成更改后,我们使用[changesets](https://github.com/changesets/changesets)来管理发布说明。运行`yarn changeset`可以自动生成要附加到你的拉取请求中的说明。 谢谢! ## 贡献者 Formik是在这些优秀的人们的帮助下制作的 ([表情符号说明](https://github.com/kentcdodds/all-contributors#emoji-key)): <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore --> | [<img src="https://avatars2.githubusercontent.com/u/4060187?v=4" width="100px;"/><br /><sub><b>Jared Palmer</b></sub>](http://jaredpalmer.com)<br />[💬](#question-jaredpalmer "回答问题") [💻](https://github.com/jaredpalmer/formik/commits?author=jaredpalmer "代码") [🎨](#design-jaredpalmer "设计") [📖](https://github.com/jaredpalmer/formik/commits?author=jaredpalmer "文档") [💡](#example-jaredpalmer "示例") [🤔](#ideas-jaredpalmer "想法、规划与反馈") [👀](#review-jaredpalmer "审核拉取请求") [⚠️](https://github.com/jaredpalmer/formik/commits?author=jaredpalmer "测试") | [<img src="https://avatars0.githubusercontent.com/u/109324?v=4" width="100px;"/><br /><sub><b>Ian White</b></sub>](https://www.stardog.io)<br />[💬](#question-eonwhite "回答问题") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Aeonwhite "错误报告") [💻](https://github.com/jaredpalmer/formik/commits?author=eonwhite "代码") [📖](https://github.com/jaredpalmer/formik/commits?author=eonwhite "文档") [🤔](#ideas-eonwhite "想法、规划与反馈") [👀](#review-eonwhite "审核拉取请求") | [<img src="https://avatars0.githubusercontent.com/u/829963?v=4" width="100px;"/><br /><sub><b>Andrej Badin</b></sub>](http://andrejbadin.com)<br />[💬](#question-Andreyco "回答问题") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3AAndreyco "错误报告") [📖](https://github.com/jaredpalmer/formik/commits?author=Andreyco "文档") | [<img src="https://avatars2.githubusercontent.com/u/91115?v=4" width="100px;"/><br /><sub><b>Adam Howard</b></sub>](http://adz.co.de)<br />[💬](#question-skattyadz "回答问题") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Askattyadz "错误报告") [🤔](#ideas-skattyadz "想法、规划与反馈") [👀](#review-skattyadz "审核拉取请求") | [<img src="https://avatars1.githubusercontent.com/u/6711845?v=4" width="100px;"/><br /><sub><b>Vlad Shcherbin</b></sub>](https://github.com/VladShcherbin)<br />[💬](#question-VladShcherbin "回答问题") [🐛](https://github.com/jaredpalmer/formik/issues?q=author%3AVladShcherbin "错误报告") [🤔](#ideas-VladShcherbin "想法、规划与反馈") | [<img src="https://avatars3.githubusercontent.com/u/383212?v=4" width="100px;"/><br /><sub><b>Brikou CARRE</b></sub>](https://github.com/brikou)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Abrikou "错误报告") [📖](https://github.com/jaredpalmer/formik/commits?author=brikou "文档") | [<img src="https://avatars0.githubusercontent.com/u/5314713?v=4" width="100px;"/><br /><sub><b>Sam Kvale</b></sub>](http://skvale.github.io)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Askvale "错误报告") [💻](https://github.com/jaredpalmer/formik/commits?author=skvale "代码") [⚠️](https://github.com/jaredpalmer/formik/commits?author=skvale "测试") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | [<img src="https://avatars0.githubusercontent.com/u/13765558?v=4" width="100px;"/><br /><sub><b>Jon Tansey</b></sub>](http://jon.tansey.info)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Ajontansey "错误报告") [💻](https://github.com/jaredpalmer/formik/commits?author=jontansey "代码") | [<img src="https://avatars0.githubusercontent.com/u/6819171?v=4" width="100px;"/><br /><sub><b>Tyler Martinez</b></sub>](http://slightlytyler.com)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3Aslightlytyler "错误报告") [📖](https://github.com/jaredpalmer/formik/commits?author=slightlytyler "文档") | [<img src="https://avatars0.githubusercontent.com/u/1285032?v=4" width="100px;"/><br /><sub><b>Tobias Lohse</b></sub>](http://MrLoh.se)<br />[🐛](https://github.com/jaredpalmer/formik/issues?q=author%3AMrLoh "错误报告") [💻](https://github.com/jaredpalmer/formik/commits?author=MrLoh "代码") | <!-- ALL-CONTRIBUTORS-LIST:END --> 本项目遵循[all-contributors](https://github.com/kentcdodds/all-contributors)规范。欢迎任何形式的贡献! ## 相关 - [TSDX](https://github.com/jaredpalmer/tsdx) - 本仓库使用的TypeScript零配置CLI。(Formik的Rollup配置作为CLI) --- [Apache 2.0 许可证。](https://github.com/jaredpalmer/formik/blob/master/LICENSE)

编辑推荐精选

音述AI

音述AI

全球首个AI音乐社区

音述AI是全球首个AI音乐社区,致力让每个人都能用音乐表达自我。音述AI提供零门槛AI创作工具,独创GETI法则帮助用户精准定义音乐风格,AI润色功能支持自动优化作品质感。音述AI支持交流讨论、二次创作与价值变现。针对中文用户的语言习惯与文化背景进行专门优化,支持国风融合、C-pop等本土音乐标签,让技术更好地承载人文表达。

QoderWork

QoderWork

阿里Qoder团队推出的桌面端AI智能体

QoderWork 是阿里推出的本地优先桌面 AI 智能体,适配 macOS14+/Windows10+,以自然语言交互实现文件管理、数据分析、AI 视觉生成、浏览器自动化等办公任务,自主拆解执行复杂工作流,数据本地运行零上传,技能市场可无限扩展,是高效的 Agentic 生产力办公助手。

lynote.ai

lynote.ai

一站式搞定所有学习需求

不再被海量信息淹没,开始真正理解知识。Lynote 可摘要 YouTube 视频、PDF、文章等内容。即时创建笔记,检测 AI 内容并下载资料,将您的学习效率提升 10 倍。

AniShort

AniShort

为AI短剧协作而生

专为AI短剧协作而生的AniShort正式发布,深度重构AI短剧全流程生产模式,整合创意策划、制作执行、实时协作、在线审片、资产复用等全链路功能,独创无限画布、双轨并行工业化工作流与Ani智能体助手,集成多款主流AI大模型,破解素材零散、版本混乱、沟通低效等行业痛点,助力3人团队效率提升800%,打造标准化、可追溯的AI短剧量产体系,是AI短剧团队协同创作、提升制作效率的核心工具。

seedancetwo2.0

seedancetwo2.0

能听懂你表达的视频模型

Seedance two是基于seedance2.0的中国大模型,支持图像、视频、音频、文本四种模态输入,表达方式更丰富,生成也更可控。

nano-banana纳米香蕉中文站

nano-banana纳米香蕉中文站

国内直接访问,限时3折

输入简单文字,生成想要的图片,纳米香蕉中文站基于 Google 模型的 AI 图片生成网站,支持文字生图、图生图。官网价格限时3折活动

扣子-AI办公

扣子-AI办公

职场AI,就用扣子

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

堆友

堆友

多风格AI绘画神器

堆友平台由阿里巴巴设计团队创建,作为一款AI驱动的设计工具,专为设计师提供一站式增长服务。功能覆盖海量3D素材、AI绘画、实时渲染以及专业抠图,显著提升设计品质和效率。平台不仅提供工具,还是一个促进创意交流和个人发展的空间,界面友好,适合所有级别的设计师和创意工作者。

图像生成AI工具AI反应堆AI工具箱AI绘画GOAI艺术字堆友相机AI图像热门
码上��飞

码上飞

零代码AI应用开发平台

零代码AI应用开发平台,用户只需一句话简单描述需求,AI能自动生成小程序、APP或H5网页应用,无需编写代码。

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

下拉加载更多