Accessing Storybook โ Quick Guide for Stakeholders โ
This guide is for designers, product managers, and stakeholders who want to view and interact with Lantern's component library.
What is Storybook? โ
Storybook is an interactive component library where you can:
- Browse all UI components used in the Lantern app
- See component variations (different states, sizes, colors)
- Interact with components (click buttons, fill forms, etc.)
- View documentation for each component
- Copy code examples for developers
Think of it as a living style guide and component showcase.
How to Access Storybook โ
Production (Stable) โ
URL: https://storybook.ourlantern.app
This version shows components from the main branch (production-ready).
Development (Latest Features) โ
URL: https://storybook.dev.ourlantern.app
This version shows the latest components being developed (may have work-in-progress features).
Feature Preview (Branch-Specific) โ
When reviewing a specific feature branch, you'll get a preview URL like:
https://[branch-name].lantern-storybook-dev.pages.devYour developer or designer will share this URL in pull requests, Slack, or design handoffs.
Navigating Storybook โ
Sidebar Navigation โ
The left sidebar shows all components organized by category:
๐ Style
โโโ Colors
โโโ Icons
๐ Components
โโโ Button
โโโ Icon
โโโ LanternBadge
โโโ ... more components
๐ Screens
โโโ Dashboard
โโโ Profile
โโโ ... more screensClick any component to view it.
Component View โ
Each component page has two tabs:
Canvas โ Interactive view
- See the component in action
- Use the "Controls" panel (bottom) to change props
- Try different states and variations
Docs โ Documentation view
- Component description
- Usage examples
- Props/API reference
- Code snippets
Using the Controls Panel โ
The Controls panel lets you interact with components in real-time.
Example: Viewing a Button component
- Click "Components/Button" in the sidebar
- Look at the bottom panel labeled "Controls"
- You'll see options like:
variant: primary, secondary, outline, ghostsize: small, medium, largedisabled: toggle on/off
- Change any control to see the button update instantly
This is great for:
- Seeing all possible variations
- Testing edge cases
- Getting design feedback
Sharing Specific Components โ
Direct Link to a Component โ
To share a specific component:
- Navigate to the component in Storybook
- Copy the URL from your browser
- Share it with your team
Example URLs:
https://storybook.ourlantern.app/?path=/story/components-button--default
https://storybook.ourlantern.app/?path=/docs/components-lanternbadge--docsCanvas-Only View (Clean Embed) โ
To show just the component without the sidebar/panels:
- Click the "Open canvas in new tab" button (top-right)
- Or add
/iframe.htmlto the URL:https://storybook.ourlantern.app/iframe.html?id=components-button--default
This is useful for:
- Design presentations
- Embedding in documents
- Clean screenshots
Common Use Cases โ
For Designers โ
Reviewing component variations:
- Go to the component in Storybook
- Use Controls to try different props
- Take screenshots or notes
- Provide feedback in your design tool or Slack
Checking design tokens (colors, spacing):
- Go to "Style/Colors" in the sidebar
- See all color variables used in the app
- Verify consistency with your design system
For Product Managers โ
Understanding available components:
- Browse the "Components" section
- Read the Docs tab for each component
- See what's already built (reuse before requesting new)
Previewing new features:
- Open the feature branch preview URL (shared by developer)
- Review the new components or changes
- Provide feedback in the pull request
For Developers โ
Finding components to reuse:
- Search for similar components in the sidebar
- Check the Docs tab for usage examples
- Copy code snippets to use in your work
Sharing work-in-progress:
- Push your branch with new stories
- Share the auto-generated preview URL
- Get feedback before merging
Tips & Tricks โ
Keyboard Shortcuts โ
sโ Focus searchfโ Toggle fullscreenaโ Toggle addons panel (bottom)dโ Toggle dark mode (if available)
Search โ
Click the search bar (top-left) or press s to search for components by name.
Zoom โ
Most stories include zoom controls or you can use your browser's zoom (Cmd/Ctrl + +/-).
Mobile View โ
Some stories support mobile viewport. Look for viewport controls in the toolbar (top).
Troubleshooting โ
Storybook Won't Load โ
Check your URL:
- Production:
storybook.ourlantern.app(nowww) - Development:
storybook.dev.ourlantern.app
Check access:
- Storybook is public by default (no login needed)
- If you see a login screen, contact your team lead for credentials
Component Looks Wrong โ
Environment mismatch:
- Make sure you're viewing the right version (prod vs dev)
- Feature branches may have work-in-progress styling
Browser compatibility:
- Use a modern browser (Chrome, Firefox, Safari, Edge)
- Clear cache if components look outdated
Can't Find a Component โ
Search:
- Use the search bar (press
s) - Components may be organized under different categories
Not yet in Storybook:
- Some components may exist in the app but not have stories yet
- Ask your developer to add a story for it
Requesting Changes or New Components โ
Found a bug or inconsistency? โ
- Take a screenshot
- Note the URL of the specific story
- Share in Slack, Jira, or your issue tracker
- Tag the responsible developer or designer
Need a new component? โ
- Check if a similar component exists in Storybook
- Document your requirements (purpose, variations, states)
- Create a ticket or design spec
- Work with your developer to add it
Getting Help โ
- Developer documentation: See
docs/storybook/STORYBOOK.mdfor technical details - Deployment guide: See
docs/engineering/deployment/STORYBOOK_DEPLOYMENT.md - Team Slack: Ask in your #design or #engineering channel
Summary โ
| What | Where |
|---|---|
| View stable components | storybook.ourlantern.app |
| View latest components | storybook.dev.ourlantern.app |
| Interact with components | Use the Controls panel (bottom) |
| Read documentation | Click the "Docs" tab on any component |
| Share a component | Copy the URL from your browser |
| View clean (no UI) | Use /iframe.html URLs or "Open canvas" button |
Questions? Reach out to your engineering or design team!