rsnext/examples/with-paste-typescript/README.md
Simon Taggart 66a49721d5
feat: add Twilio Paste example (#20587)
* feat: add Twilio Paste example

* Updated readme

Co-authored-by: Luis Alvarez <luis@vercel.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-06 13:49:57 -05:00

1.3 KiB

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:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn 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

Deploy it to the cloud with Vercel (Documentation).