This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
docs(checkbox): schema block declares checked/description/error/className/wrapperClass - #8036
Merged
Merged
Conversation
…Name/wrapperClass The `## Schema` block in checkbox.mdx was a six-line summary that omitted five CheckboxSchema members that are real, declared authoring keys as of main (`checked`, `description`, `error`, `wrapperClass` — own members — and `className` via BaseSchema). `onChange` is excluded: it is a host-supplied runtime callback the zod twin explicitly refuses by name (same docblock wording as input/textarea/select/file-upload, the majority of sibling pages that omit it despite declaring it). The `disabled` line is kept verbatim — it is already the most current line on the page. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Contributor
Author
|
Standing-down note — Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7724
What changed
Replaced the six-line
## Schemasummary block incontent/docs/components/form/checkbox.mdxwith the full set ofCheckboxSchemamembers declared onmainat fix time (packages/types/src/form.ts:306, re-read fresh — not copied from the triage comment's0558e0freading).Before / after
typenamelabeldefaultCheckedcheckedform.ts:323)requireddisabledBaseSchema,base.ts:343)descriptionform.ts:327)errorform.ts:331)classNameBaseSchema,base.ts:171)wrapperClassform.ts:354, landed by #7723)onChangeform.ts:364)The one judgment:
onChangeCheckboxSchema.onChangecarries the same docblock asInputSchema/TextareaSchema/SelectSchema/FileUploadSchema'sonChange: "RUNTIME SLOT ... a host-supplied function, NOT authorable metadata: JSON has no function value, so the zod twin refuses this key by name." Checked precedent across every siblingcontent/docs/components/form/*.mdxpage whose schema declares a real (non-never)onChange:onChangefrom the doc block:input.mdx,textarea.mdx,select.mdx,file-upload.mdx(4)onChange:date-picker.mdx,input-otp.mdx(2)Majority (4 of 6) omits it, and it's the same majority whose schemas carry the identical "not authorable metadata" docblock as checkbox's own — so
onChangestays out of this block.For the inherited
className, precedent runs the other way: 9 of 14 comparable sibling pages (file-upload,radio-group,date-picker,combobox,input-otp,calendar,button,command,label) document it; only the minimal-summary pages (input,select,switch,textarea,slider) omit it — the same genrecheckbox.mdxis leaving behind.classNameis added.Scope
content/docs/components/form/checkbox.mdx, the## Schemablock only — no other page, nopackages/**change, no doc-parity gate (per triage §3/§4, filed separately if opened).🤖 Generated with Claude Code
https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Generated by Claude Code