rsnext/examples/with-emotion-swc
2022-05-27 21:21:40 +00:00
..
pages Fix styled transform in next-swc/emotion (#35527) 2022-03-23 20:47:44 +00:00
shared Fix styled transform in next-swc/emotion (#35527) 2022-03-23 20:47:44 +00:00
.gitignore SWC emotion transform plugin (#34687) 2022-03-15 08:51:15 +01:00
next.config.js Stabilize SWC emotion transform plugin (#37058) 2022-05-21 04:09:30 +00:00
package.json SWC emotion transform plugin (#34687) 2022-03-15 08:51:15 +01:00
README.md Update pnpm create next-app for latest pnpm 6 and 7 (#37254) 2022-05-27 21:21:40 +00: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
# or
yarn create next-app --example with-emotion-swc with-emotion-swc-app
# or
pnpm create next-app --example with-emotion-swc with-emotion-swc-app

Deploy it to the cloud with Vercel (Documentation).