https://styled-components.com/

styled-components

$ npm install styled-components $ npm install @types/styled-components

ts

import styled from 'styled-components'
 
const LargeP = styled.p`
  font-size: 200%;
`

Tagged Template Literal React

CSS design with styled-components - Qiita how to use styled-components (I aim to explain various patterns in a quick and easy to understand manner) styled-components: API Reference Tips for using styled-components with TypeScript - Qiita

CSS-in-JS CSS in JS


This page is auto-translated from /nishio/styled-components using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.