# What is Variant?

A named version of a component that looks or behaves differently, like a button that can be `primary`, `secondary`, or `destructive`. Variants live inside one component definition.

## In real work

Add a destructive variant to the Button. Red colors, same API as primary and secondary. All three in one component.

## Related terms

- [Component Library](https://prompthausapp.com/learn/component-library.md)
- [Design System](https://prompthausapp.com/learn/design-system.md)
- [shadcn](https://prompthausapp.com/learn/shadcn.md)
- [Ant Design](https://prompthausapp.com/learn/ant-design.md)
- [Radix UI](https://prompthausapp.com/learn/radix-ui.md)

## How is this different from Googling it?

Google gives a definition. Prompthaus pairs each term with how it shows up in standups, PRs, prompts, and design reviews—then quizzes you until the word sticks. One term a day on iPhone.

- Category: UI Kits
- HTML: https://prompthausapp.com/learn/variant
- App Store: https://apps.apple.com/us/app/prompthaus-ai-vocabulary/id6776314407
