Bada
Bada's Coding

Bada's Coding

styled-components (Basic)

Bada's photo
Bada
·Aug 9, 2022·

1 min read

Introduction

!!! To use TypeScript, you should also install '@types/styled-components'. You can install it in devDependencies.

I wrote the codes in the CondeSandbox.

Please import the file you will study in 'index.tsx'.

Below, there will be the order.

Order

I omitted '.tsx'.

Basic

Basic > Attribute > Inherit > ExternalFile

Prop

Prop1 > Prop2 > Prop3

Extend

Extend1 > Extend2 > Extend3

As

As

Nest

Nest1 > Nest2 > Nest3

Animate

Animate

Theme

Theme

CodeSandbox

 
Share this