Skip to content

[frontend] Set up Storybook for component development #958

Description

@Ehonrie

Configure Storybook 8 for Next.js and add stories for all 17 reusable components.

What to do:

  • Run npx storybook init in /frontend
  • Configure addon-essentials, addon-a11y, addon-interactions
  • Write at least one story per component using realistic mock data

Required stories:

  • MarketCard: Open, Locked, Resolved states
  • FighterCard: A side, B side
  • MarketStatusBadge: all 5 status variants
  • BettingInterface: Open market, Locked market (disabled)
  • ClaimButton: Claim Winnings, Claim Refund, Already Claimed
  • Toast: success, error, info
  • All remaining components: at least 1 story each

Acceptance Criteria:

  • npm run storybook starts without errors
  • All 17 components have at least 1 story
  • Stories render correctly with mock data
  • No TypeScript errors in story files

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions