feat(website): info-icon tooltips on demo controls, sourced from TSDocs#26
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Deploy Preview for colander-cal ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
🎉 This PR is included in version 3.1.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds ⓘ info icons next to the
/democontrol labels. On hover/focus they reveal each prop's TSDoc, pulled live from the generated API data (api-data/symbols.gen.json) — the same source the docs site's API tables use — so the tooltips always mirror the library's TSDoc.How
control-docs.tsx(new): maps each demo control →{ symbol, prop }, resolves the description +@defaultfrom the API data, and rendersControlInfo(an accessible icon button → Base UI tooltip, text via the existingInlineDescription). Renders nothing when a prop has no extracted doc, so demo-only controls (viewMode,showWeekNumbers, …) stay icon-free.demo.tsx: a routeloaderimports the API data (mirroring/docs), andDemoPagewraps the app inControlDocsProvider+TooltipProvider.AppControls.tsx: aControlInfonext to each documented label.Notes
mainafter theoverflowBehavior → outOfRangeBehaviorrename (feat!: MonthView out-of-range navigation + rename overflowBehavior → outOfRangeBehavior #22); the tooltip for that prop now reads the renamedoutOfRangeBehaviorTSDoc automatically.rangeMode/preventRangeReversalare only documented onCalendarStableContextValue, so they map there.Verification
vp fmt/vp lintclean ·vp run website#buildOK (regenerates api-data with the renamed prop) · SSR renders the icons in the right places.🤖 Generated with Claude Code