---
title: "Discussion on \"Creating component variants with ease\" | Hashnode"
description: "Discussion on \"Creating component variants with ease\". There are times when you are writing your UI component and want to add style variants to it. A button component can be a \"primary\" button with a \"blue\" background or a \"secondary\" button with an \"orange\" background. If I asked you to create a button ..."
url: "https://hashnode.com/posts/creating-component-variants-with-ease/646d95b047dee8a9120d8b33"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating component variants with ease](https://aniketjha.dev/creating-component-variants-with-ease?utm_source=hashnode&utm_medium=feed)

There are times when you are writing your UI component and want to add style variants to it. A button component can be a "primary" button with a "blue" background or a "secondary" button with an "orange" background. If I asked you to create a button ...

May 24, 2023 · 2 min read · aniketjha.dev  
Read the article

-   [#classes](https://hashnode.com/tag/classes)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#css-in-js](https://hashnode.com/tag/css-in-js)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Aniket Jha](https://hashnode.com/@vtechguys)

@vtechguys · Delhi, India

  
[View profile](https://hashnode.com/@vtechguys)

Late Night Coder

I’m a software ninja 🥷 who loves abstractions and spread functional programming everywhere. I've over 2 years of experience and I'm based in Delhi, India🇮🇳

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
