rsnext/examples/with-paste-typescript
Tom 3e178bb801
add pnpm link to docs (#37221)
## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)


Co-authored-by: Steven <steven@ceriously.com>
2022-05-27 15:46:38 -04:00
..
pages Fix deploy buttons URLs (#20834) 2021-01-07 01:40:29 +00:00
public feat: add Twilio Paste example (#20587) 2021-01-06 13:49:57 -05:00
.gitignore feat: add Twilio Paste example (#20587) 2021-01-06 13:49:57 -05:00
next-env.d.ts Include submodules in exported type definition (#28316) 2021-11-26 14:46:56 +01:00
package.json Remove licence from all example/package.json that has them (#28007) 2021-08-14 10:48:39 -05:00
README.md add pnpm link to docs (#37221) 2022-05-27 15:46:38 -04:00
tsconfig.json feat: add Twilio Paste example (#20587) 2021-01-06 13:49:57 -05:00

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 the example using Vercel or preview live with StackBlitz

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

Deploy it to the cloud with Vercel (Documentation).