silverwolf-x's picture
|
download
raw
1.44 kB

Example app with Paste and TypeScript

This example features how to use Paste as the component library within a Next.js app with TypeScript.

Next.js and Paste have built-in TypeScript declarations, so you'll get autocompletion for their modules straight away.

pages/_app.tsx is used to connect Paste's Theme Provider so the pages can have app-wide styles.

Deploy your own

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-paste-typescript with-paste-typescript-app
yarn create next-app --example with-paste-typescript with-paste-typescript-app
pnpm create next-app --example with-paste-typescript with-paste-typescript-app

Deploy it to the cloud with Vercel (Documentation).

Xet Storage Details

Size:
1.44 kB
·
Xet hash:
a26234f15a17b2deea285e7ff1ba4e5b206541e83cc67259706f54260f80b2e5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.