07d3da102d
Updated 3 more examples to TypeScript. Changes to individual examples pushed as separate commits. - Swapped `cxs/lite` for `cxs`, as it's the only mode supported by `@types/cxs`. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm build && pnpm lint` - [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) |
||
---|---|---|
.. | ||
lib | ||
pages | ||
.babelrc | ||
.gitignore | ||
package.json | ||
README.md | ||
tsconfig.json |
Example app with cssed
This example shows how to use cssed, a CSS-in-JS library, with Next.js.
We are creating div
element with local scoped styles. The styles includes the use of pseudo-selector.
Deploy your own
Deploy the example using Vercel or preview live with StackBlitz
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-cssed with-cssed-app
yarn create next-app --example with-cssed with-cssed-app
pnpm create next-app --example with-cssed with-cssed-app
Deploy it to the cloud with Vercel (Documentation).