-
-
Notifications
You must be signed in to change notification settings - Fork 691
docs(form-core): add package README #2403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,49 @@ | ||||||
| <img src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" /> | ||||||
|
|
||||||
| <picture> | ||||||
| <source | ||||||
| media="(prefers-color-scheme: dark)" | ||||||
| srcset="https://tanstack.com/api/readme/form.png?theme=dark" | ||||||
| /> | ||||||
| <source | ||||||
| media="(prefers-color-scheme: light)" | ||||||
| srcset="https://tanstack.com/api/readme/form.png" | ||||||
| /> | ||||||
| <img | ||||||
| src="https://tanstack.com/api/readme/form.png" | ||||||
| alt="TanStack Form" | ||||||
| width="900" | ||||||
| /> | ||||||
| </picture> | ||||||
|
|
||||||
| The framework-agnostic core of TanStack Form | ||||||
|
|
||||||
| <a href="https://twitter.com/intent/tweet?button_hashtag=TanStack" target="\_parent"> | ||||||
| <img alt="#TanStack" src="https://img.shields.io/twitter/url?color=%2308a0e9&label=%23TanStack&style=social&url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fbutton_hashtag%3DTanStack"> | ||||||
| </a><a href="https://discord.com/invite/WrRKjPJ" target="\_parent"> | ||||||
| <img alt="" src="https://img.shields.io/badge/Discord-TanStack-%235865F2" /> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: nl -ba packages/form-core/README.md | sed -n '18,40p'Repository: TanStack/form Length of output: 2181 Add accessible names to the linked badges. Each cited anchor contains only an image with an empty Suggested fix- <img alt="" src="https://img.shields.io/badge/Discord-TanStack-%235865F2" />
+ <img alt="Join TanStack on Discord" src="https://img.shields.io/badge/Discord-TanStack-%235865F2" />
- <img alt="" src="https://img.shields.io/npm/dm/@tanstack/form-core.svg" />
+ <img alt="npm downloads" src="https://img.shields.io/npm/dm/@tanstack/form-core.svg" />
- <img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/form-core" />
+ <img alt="Bundle size" src="https://badgen.net/bundlephobia/minzip/@tanstack/form-core" />
- <img alt="" src="https://img.shields.io/github/stars/TanStack/form.svg?style=social&label=Star" />
+ <img alt="Star TanStack Form on GitHub" src="https://img.shields.io/github/stars/TanStack/form.svg?style=social&label=Star" />
- <img alt="" src="https://img.shields.io/twitter/follow/tannerlinsley.svg?style=social&label=Follow" />
+ <img alt="Follow Tanner Linsley on Twitter" src="https://img.shields.io/twitter/follow/tannerlinsley.svg?style=social&label=Follow" />🤖 Prompt for AI Agents
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kept as-is: every adapter README in this repo has the same five There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Would you like me to open a follow-up issue to address the badges across all the READMEs? ✏️ Learnings added
You are interacting with an AI system. |
||||||
| </a><a href="https://www.npmjs.com/package/@tanstack/form-core" target="\_parent"> | ||||||
| <img alt="" src="https://img.shields.io/npm/dm/@tanstack/form-core.svg" /> | ||||||
| </a><a href="https://bundlephobia.com/package/@tanstack/form-core@latest" target="\_parent"> | ||||||
| <img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/form-core" /> | ||||||
| </a><a href="#badge"> | ||||||
| <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg"> | ||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||
| </a><a href="https://github.com/TanStack/form/discussions"> | ||||||
| <img alt="Join the discussion on Github" src="https://img.shields.io/badge/Github%20Discussions%20%26%20Support-Chat%20now!-blue" /> | ||||||
| </a><a href="https://bestofjs.org/projects/tanstack-form"><img alt="Best of JS" src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%form%26since=daily" /></a><a href="https://github.com/TanStack/form/" target="\_parent"> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: nl -ba packages/form-core/README.md
rg -n 'bestofjs-serverless|fullName=TanStack' packagesRepository: TanStack/form Length of output: 7958 🏁 Script executed: node - <<'JS'
const current = 'https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%form%26since=daily';
const corrected = 'https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%2Fform%26since=daily';
for (const [name, value] of [['current', current], ['corrected', corrected]]) {
const outer = new URL(value);
const nestedText = outer.searchParams.get('url');
const nested = new URL(nestedText);
console.log(name);
console.log('outer url value:', nestedText);
console.log('nested fullName:', nested.searchParams.get('fullName'));
console.log('nested since:', nested.searchParams.get('since'));
}
JSRepository: TanStack/form Length of output: 481 Correct the Best of JS project identifier encoding. The nested query parses Suggested fix-<img alt="Best of JS" src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%form%26since=daily" />
+<img alt="Best of JS" src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=TanStack%2Fform%26since=daily" />📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kept as-is: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You are interacting with an AI system. |
||||||
| <img alt="" src="https://img.shields.io/github/stars/TanStack/form.svg?style=social&label=Star" /> | ||||||
| </a><a href="https://twitter.com/tannerlinsley" target="\_parent"> | ||||||
| <img alt="" src="https://img.shields.io/twitter/follow/tannerlinsley.svg?style=social&label=Follow" /> | ||||||
| </a> <a href="https://gitpod.io/from-referrer/"> | ||||||
| <img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"/> | ||||||
| </a> | ||||||
|
|
||||||
| This package holds the form and field logic every TanStack Form adapter is built on. Reach for it directly when you are writing an adapter or using TanStack Form without one; in an app, install the adapter for your framework instead — [`@tanstack/react-form`](https://www.npmjs.com/package/@tanstack/react-form), [`@tanstack/vue-form`](https://www.npmjs.com/package/@tanstack/vue-form), [`@tanstack/angular-form`](https://www.npmjs.com/package/@tanstack/angular-form), [`@tanstack/solid-form`](https://www.npmjs.com/package/@tanstack/solid-form), [`@tanstack/svelte-form`](https://www.npmjs.com/package/@tanstack/svelte-form), [`@tanstack/preact-form`](https://www.npmjs.com/package/@tanstack/preact-form), or [`@tanstack/lit-form`](https://www.npmjs.com/package/@tanstack/lit-form) — and it comes along as a dependency. | ||||||
|
|
||||||
| Enjoy this library? Try the entire [TanStack](https://tanstack.com)! [TanStack Table](https://github.com/TanStack/table), [TanStack Router](https://github.com/tanstack/router), [TanStack Virtual](https://github.com/tanstack/virtual), [React Charts](https://github.com/TanStack/react-charts), [React Ranger](https://github.com/TanStack/ranger) | ||||||
|
|
||||||
| ## Visit [tanstack.com/form](https://tanstack.com/form) for docs, guides, API and more! | ||||||
|
|
||||||
| ### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/) | ||||||
|
|
||||||
| <!-- Use the force, Luke --> | ||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Add empty alternative text to the Scarf pixel.
This image has no user-facing content. Add
alt=""so assistive technology can ignore it. WAI notes that some screen readers announce an image filename whenaltis omitted. (docs.scarf.sh)🧰 Tools
🪛 markdownlint-cli2 (0.23.2)
[warning] 1-1: Images should have alternate text (alt text)
(MD045, no-alt-text)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept as-is: this line is copied verbatim from the existing package READMEs (react-form, vue-form, angular-form, …), which all carry the same Scarf pixel without an alt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@changbaebang, thanks for the context. Keeping the package READMEs consistent explains the choice. The missingaltalso affects the existing Scarf pixels, so the accessibility concern is shared across the READMEs rather than unique to this PR. I understand your decision to leave this line as-is.✏️ Learnings added
You are interacting with an AI system.