Interview practice question
Designing a reusable Button component
Frontend Engineering · React · Intermediate
How would you design a reusable Button component for your team's design system?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Variants, sizes via props.
- Spread native button props, forward ref.
- Accessible defaults (type, focus, disabled).
- Loading state.
- Polymorphic/asChild for links.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.