Skip to content

feat(website): info-icon tooltips on demo controls, sourced from TSDocs#26

Merged
dogmar merged 1 commit into
mainfrom
feat/demo-control-tooltips
Jun 16, 2026
Merged

feat(website): info-icon tooltips on demo controls, sourced from TSDocs#26
dogmar merged 1 commit into
mainfrom
feat/demo-control-tooltips

Conversation

@dogmar

@dogmar dogmar commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Adds ⓘ info icons next to the /demo control 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 + @default from the API data, and renders ControlInfo (an accessible icon button → Base UI tooltip, text via the existing InlineDescription). Renders nothing when a prop has no extracted doc, so demo-only controls (viewMode, showWeekNumbers, …) stay icon-free.
  • demo.tsx: a route loader imports the API data (mirroring /docs), and DemoPage wraps the app in ControlDocsProvider + TooltipProvider.
  • AppControls.tsx: a ControlInfo next to each documented label.

Notes

Verification

  • vp fmt/vp lint clean · vp run website#build OK (regenerates api-data with the renamed prop) · SSR renders the icons in the right places.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for colander-cal ready!

Name Link
🔨 Latest commit ce54e14
🔍 Latest deploy log https://app.netlify.com/projects/colander-cal/deploys/6a3095b685eb7000091b7eb3
😎 Deploy Preview https://deploy-preview-26--colander-cal.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dogmar dogmar merged commit 8db5e30 into main Jun 16, 2026
7 checks passed
@dogmar dogmar deleted the feat/demo-control-tooltips branch June 16, 2026 00:31
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.1.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant