Add Storybook for component library documentation and development#6
Draft
Add Storybook for component library documentation and development#6
Conversation
Co-authored-by: shivankacker <23238460+shivankacker@users.noreply.github.com>
Co-authored-by: shivankacker <23238460+shivankacker@users.noreply.github.com>
Co-authored-by: shivankacker <23238460+shivankacker@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create Storybook for kacker/ui components
Add Storybook for component library documentation and development
Dec 24, 2025
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.
Implements Storybook 8.6.14 to enable isolated component development, visual testing, and auto-generated documentation for the @kacker/ui library.
Changes
Configuration
@capacitor/app,@capacitor/core, etc.) to enable browser-based development@/*) matching project TypeScript configComponent Stories (10 components, 54 variants)
Package Updates
storybookandbuild-storybooknpm scriptspreparescript to avoid Bun dependency during npm installUsage
npm install --legacy-peer-deps npm run storybook # http://localhost:6006Screenshots
Button variants with interactive controls:

Input component documentation:

Technical Notes
The Capacitor mocks in
.storybook/mocks/are essential since the library targets Capacitor mobile apps. They provide minimal implementations returning no-ops and promises, allowing components to render in Storybook without native dependencies.Stories follow CSF3 format with
autodocsenabled for automatic prop documentation. See.storybook/README.mdfor adding new stories.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
storybook.js.org/usr/local/bin/node node /home/REDACTED/.npm/_npx/16684dbf41d9f438/node_modules/.bin/create-storybook --yes --skip-install(dns block)/usr/local/bin/node node /home/REDACTED/work/ui/ui/node_modules/.bin/storybook dev -p 6006(dns block)/usr/local/bin/node node /home/REDACTED/work/ui/ui/node_modules/.bin/storybook dev -p 6006 unset Co-authored-by: shivankacker <23238460+shivankacker@users.noreply.github.com> bin/npm credential.usernnpm(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.