rsnext/examples/with-emotion
2024-05-08 21:47:14 +02:00
..
pages Update with-emotion example (#62771) 2024-03-03 08:04:32 +01:00
shared chore: update prettier to 3.2.5 (#65092) 2024-05-08 21:47:14 +02:00
.gitignore Add .yarn/install-state.gz to .gitignore (#56637) 2023-10-18 16:34:48 +00:00
next.config.js Update with-emotion example (#62771) 2024-03-03 08:04:32 +01:00
package.json @emotion/cache version fix (#65422) 2024-05-06 19:48:31 +00:00
README.md Update with-emotion example (#62771) 2024-03-03 08:04:32 +01:00
tsconfig.json Update with-emotion example (#62771) 2024-03-03 08:04:32 +01:00

Emotion Example

Extract and inline critical css with @emotion/css, @emotion/server, @emotion/react, and @emotion/styled.

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-emotion-swc with-emotion-swc-app
yarn create next-app --example with-emotion-swc with-emotion-swc-app
pnpm create next-app --example with-emotion-swc with-emotion-swc-app

Deploy it to the cloud with Vercel (Documentation).