All quizzes
Free quiz · 20 questions in the bank

shadcn/ui quiz

Test your shadcn/ui knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is `cn()` (commonly a small utility combining `clsx` and `tailwind-merge`), which shadcn/ui components frequently use internally?

Questions in this quiz
  1. What is `cn()` (commonly a small utility combining `clsx` and `tailwind-merge`), which shadcn/ui components frequently use internally?
  2. What is shadcn/ui?
  3. What is a reasonable strategy for a team wanting to eventually update shadcn/ui components after they've already been customized in a project?
  4. What is the purpose of the `asChild` pattern (inherited from Radix UI) as it shows up in shadcn/ui components like `Button`?
  5. What does it mean that shadcn/ui is sometimes described as a "component distribution" model rather than a traditional "component library"?
  6. What two underlying technologies does shadcn/ui build its components on top of?
  7. Why might a team specifically choose shadcn/ui over a traditional npm-installed component library like Material UI or Chakra UI for a project with a highly custom design system?
  8. What is the significance of shadcn/ui components being written in TypeScript?
  9. How does shadcn/ui's model compare conceptually to simply copying example code from a component library's documentation page into your own project by hand?
  10. What is a `Form` component pattern commonly used with shadcn/ui, often built alongside `react-hook-form` and a schema validation library like Zod?
  11. How does shadcn/ui commonly handle theming (e.g. supporting both a light and dark mode) across its components?
  12. How do you typically add a new shadcn/ui component to a project?
Gaps to close?
Read the curated shadcn/ui notes — core concepts, patterns, interview prep.
shadcn/ui notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web