---
title: "Discussion on \"How to Pass className to Styled-Components in React\" | Hashnode"
description: "Discussion on \"How to Pass className to Styled-Components in React\". this articles discuss how to use classNames with styled-components in react using the attr object"
url: "https://hashnode.com/posts/how-to-pass-classname-to-styled-components-in-react/6324c77bdd55cd8b89b1d564"
---

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

Discussion

# [How to Pass className to Styled-Components in React](https://naura.hashnode.dev/how-to-pass-classname-to-styled-components-in-react?utm_source=hashnode&utm_medium=feed)

this articles discuss how to use classNames with styled-components in react using the attr object

Sep 16, 2022 · 3 min read · naura.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#styled-components](https://hashnode.com/tag/styled-components)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#css-in-js](https://hashnode.com/tag/css-in-js)

## Written by

[Khadija Gwarzo](https://hashnode.com/@Naura)

@Naura

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

Front-end developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
