Component Patterns.instructions
# Component Patterns
This document defines the canonical patterns for building UI components in this project.
## DaisyUI + CVA Component Pattern
All UI components should follow the pattern established in `app/components/Button.tsx`.
### Core Structure
Components use **CVA (Class Variance Authority)** for type-safe variant management with **DaisyUI** class names as the foundation.when to use it
Community prompt sourced from the open-source GitHub repo sethdavis512/prompt-bucket (no explicit license). A "Component Patterns.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
writingcommunitygeneral
source
sethdavis512/prompt-bucket · no explicit license
more in Writing
Writing✓ tested
Explain anything to a smart friend
great teacher who refuses to dumb things down
Writing✓ tested
Line-edit my draft (keep my voice)
sharp copy editor who tightens without flattening
Writing✓ tested
Outline a long piece before you write it
editor who structures the argument before a word is drafted