Cards
Card components for displaying structured content with consistent styling and behavior.
PrdCard (Default Styling)
PrdSection - With Content (Default)
Product Overview & Vision
This section describes the core vision and overview of the product.
Key Features
- Feature 1
- Feature 2
- Feature 3
User Stories & Requirements
Detailed user stories and functional requirements.
Core User Stories
- As a user, I want to...
- As an admin, I need to...
Technical Architecture
Implementation Timeline
Project timeline and milestones.
Phase 1
- Week 1-2: Setup
- Week 3-4: Core features
PrdSection - Header Only (showContent=false)
Product Overview & Vision
User Stories & Requirements
Technical Architecture
Implementation Timeline
PrdSection - Interactive (with onClick)
Product Overview & Vision
User Stories & Requirements
Implementation Notes
PrdCard
The PrdCard
component (src/app/app/components/PrdCard.tsx
) renders its title using --text-heading
styles, applies padding using .card--padding-text-heading
(1.127em), and uses rounded-[var(--border-radius-lg)]
(approx 10px).
The delete icon uses text-[var(--color-light-onsurface-lkv-muted)]
and brightens on hover. Base classes .card
and.card--outline
are applied for structure and border.
PrdSection
The PrdSection
component (src/components/ui/PrdSection.tsx
) displays PRD sections with status indicators, completion percentages, and optional content.
Props:
section: PrdSectionData
- Section data with title, content, completion percentageshowContent?: boolean
- Whether to display section content (default: true)className?: string
- Additional CSS classesonSectionClick?: (section) => void
- Optional click handler for interactive sections
Status Indicators:
- Not Started: Muted color, 0% completion
- Started: Primary color, 1-99% completion
- Complete: Green color, 100% completion
Features:
- Intelligent content processing (removes duplicate headings)
- Markdown content rendering with ReactMarkdown
- Accessibility support (ARIA labels, keyboard navigation)
- Hover states for interactive sections
- Design system compliance with proper spacing and typography