Skip to content

docs: add Valibot examples to validation guide - #2324

Merged
LeCarbonator merged 2 commits into
TanStack:mainfrom
fabian-hiller:docs/valibot-examples
Aug 11, 2026
Merged

docs: add Valibot examples to validation guide#2324
LeCarbonator merged 2 commits into
TanStack:mainfrom
fabian-hiller:docs/valibot-examples

Conversation

@fabian-hiller

@fabian-hiller fabian-hiller commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

The validation guide names Valibot as a supported Standard Schema library but there are no code examples for it. This adds a Valibot example based on the existing Zod one. The snippet is type-checked against the latest @tanstack/react-form and valibot. I'm the author of Valibot.

Summary by CodeRabbit

  • Documentation
    • Added a React guide example showing how to validate an age field with Valibot.
    • Demonstrated integrating Standard Schema validation with form fields and form state.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 59471f97-172f-4eb5-b9b5-526e7172e524

📥 Commits

Reviewing files that changed from the base of the PR and between 4d3047c and 185aebe.

📒 Files selected for processing (1)
  • docs/framework/react/guides/validation.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/framework/react/guides/validation.md

📝 Walkthrough

Walkthrough

The validation guide adds a Valibot example for Standard Schema validation. The example validates an age field with a minimum value of 13 and connects the schema to useForm and form.Field.

Changes

Valibot validation example

Layer / File(s) Summary
Add Valibot form validation example
docs/framework/react/guides/validation.md
Adds a Valibot schema with v.object, v.pipe, v.number, and v.minValue. The example connects the schema to the form’s onChange validator.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the Valibot documentation change but omits the required Changes, Checklist, and Release Impact sections. Add the required template sections, complete both checklist items, and indicate that this documentation-only change has no release impact.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the documentation change and the added Valibot examples.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fabian-hiller

Copy link
Copy Markdown
Contributor Author

I try to improve the visibility and adoption of Valibot and am therefore thankful for code examples in other docs but if this is the wrong place for it, feel free to close this PR.

@fabian-hiller
fabian-hiller marked this pull request as ready for review August 11, 2026 19:24
@nx-cloud

nx-cloud Bot commented Aug 11, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 4d3047c

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 39s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-08-11 20:20:48 UTC

@LeCarbonator LeCarbonator left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the docs snippet!

@pkg-pr-new

pkg-pr-new Bot commented Aug 11, 2026

Copy link
Copy Markdown
More templates

@tanstack/angular-form

npm i https://pkg.pr.new/@tanstack/angular-form@2324

@tanstack/form-core

npm i https://pkg.pr.new/@tanstack/form-core@2324

@tanstack/form-devtools

npm i https://pkg.pr.new/@tanstack/form-devtools@2324

@tanstack/lit-form

npm i https://pkg.pr.new/@tanstack/lit-form@2324

@tanstack/preact-form

npm i https://pkg.pr.new/@tanstack/preact-form@2324

@tanstack/react-form

npm i https://pkg.pr.new/@tanstack/react-form@2324

@tanstack/react-form-devtools

npm i https://pkg.pr.new/@tanstack/react-form-devtools@2324

@tanstack/react-form-nextjs

npm i https://pkg.pr.new/@tanstack/react-form-nextjs@2324

@tanstack/react-form-remix

npm i https://pkg.pr.new/@tanstack/react-form-remix@2324

@tanstack/react-form-start

npm i https://pkg.pr.new/@tanstack/react-form-start@2324

@tanstack/solid-form

npm i https://pkg.pr.new/@tanstack/solid-form@2324

@tanstack/solid-form-devtools

npm i https://pkg.pr.new/@tanstack/solid-form-devtools@2324

@tanstack/svelte-form

npm i https://pkg.pr.new/@tanstack/svelte-form@2324

@tanstack/vue-form

npm i https://pkg.pr.new/@tanstack/vue-form@2324

commit: 185aebe

@LeCarbonator
LeCarbonator merged commit 83944bf into TanStack:main Aug 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants