Description
Build a flexible, reusable Button component that can be used throughout the application with different visual variants.
Create a Button component in src/components/ that supports primary, secondary, and loading states.
Relevant files:
frontend/src/components/Button.tsx (new)
Acceptance Criteria
Dependencies
None
Additional Notes
- Use Tailwind CSS for styling (already in the project)
- Consider accessibility: proper focus states, keyboard support
- Make it easily extendable for future variants (e.g., danger, success)
Description
Build a flexible, reusable Button component that can be used throughout the application with different visual variants.
Create a Button component in
src/components/that supports primary, secondary, and loading states.Relevant files:
frontend/src/components/Button.tsx(new)Acceptance Criteria
primaryandsecondaryvariantsloadingstate that disables interaction and shows spinnerdisabled,type,onClick, etc.)Dependencies
None
Additional Notes