Skip to content

feat(kit): add Storybook and integrate previews into docs site#9

Merged
Quantumlyy merged 4 commits intomainfrom
Quantumlyy/kit-storybook
Apr 4, 2026
Merged

feat(kit): add Storybook and integrate previews into docs site#9
Quantumlyy merged 4 commits intomainfrom
Quantumlyy/kit-storybook

Conversation

@Quantumlyy
Copy link
Copy Markdown
Member

@Quantumlyy Quantumlyy commented Apr 4, 2026

Summary

  • Adds Storybook 10 with @storybook/react-vite to @mbga/kit for interactive component development
  • Creates stories for ConnectButton (disconnected, connected, custom label, custom render prop), ConnectModal, and AccountModal with a mock wallet decorator and theme toolbar toggle
  • Integrates Storybook into the Vocs docs site via iframe embeds, adding a new Kit section with component documentation pages and a StorybookEmbed component
  • Updates docs:build pipeline to build and bundle Storybook static output into the site

Quantumlyy and others added 4 commits April 4, 2026 16:45
Set up Storybook 10 with @storybook/react-vite for @mbga/kit components,
with stories for ConnectButton, ConnectModal, and AccountModal in various
states. Added theme toolbar toggle and mock wallet decorator. Integrated
Storybook previews into the Vocs docs site via iframe embeds with new Kit
documentation pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Story files and decorators were included in coverage calculation,
dropping line/statement coverage below the 90% threshold.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove /storybook/ link from kit overview (Vocs flagged it as dead)
- Use rm -rf before cp -r in docs:build to prevent nested stale copies
- Build storybook assets before docs:dev so embeds work on clean checkout

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Quantumlyy Quantumlyy merged commit 938cbe7 into main Apr 4, 2026
6 checks passed
@Quantumlyy Quantumlyy deleted the Quantumlyy/kit-storybook branch April 4, 2026 16:19
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.

1 participant