Skip to content

Component Library Structure #25

@DanStuartDept

Description

@DanStuartDept

10. 🏗️ Component Library Structure

Priority: Medium

Organized component patterns.

Structure:

src/ 
  components/ 
    ui/           # Base UI components (Button, Input, Card, etc.) 
    features/     # Feature-specific components 
    layouts/      # Layout components (Header, Footer, Sidebar) 
    providers/    # Context providers 
  hooks/          # Custom React hooks 
  utils/          # Utility functions 
  types/          # Shared TypeScript types 
  constants/      # App constants 

Examples to add (use shadcn):

  • Form components (Input, Select, Checkbox and more)
  • Modal/Dialog component
  • Cards
  • Loading states and skeletons
  • 5 more shadcn ui components of your choice

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions