(information)
N.B. This is a prototype using the Paste Design System(link takes you to an external page).
PastePrototyping Kit

Welcome to the Paste Prototyping Kit


Getting Started

Build your first prototype, an "About Me" page, by following our step-by-step guide.

1. Create your New Page

A page is created for every file in the pages folder. The easiest way to create a new page is by duplicating an existing one.

Make a new page using "Template Page":

  1. Create a new file in the pages folder.
  2. Name the file about-me.js
  3. Go to the template-page.js file and copy all of its contents.
  4. Paste the contents into your about-me.js file

Congratulations! You just made your first new page on Paste.

2. Add your New Page to the Navigation

To navigate to your new "About Me" page, a link to it must be included in the navigation bar. Links for the navigation are edited in the pages.json file in the pages folder.

To add a link to the "About Me" page:

  1. Open the pages.json file.
  2. Find the last list item- currently "template-page": [] - and add a comma to the end of the line, so that it reads "template-page": [],. Then press return to make a new line.
  3. Type in "about-me": [] in the new line.
    Make sure the the string in quotes matches the file name of the page you're linking to. In this demo, the file for the "About Me" page is called about-me.js.

Once you save your work, a new "About Me" link will pop up in the navigation!

3. Follow your New Link

Finish your demo by clicking on your new "About Me" navigation link to edit the page's contents.


About the Paste Prototyping Kit

The prototyping kit is a NextJS(link takes you to an external page) app with Paste preloaded. It has everything you will need to create a fully functioning web based prototype using Paste components

Creating pages

Create pages in the pages directory. You can copy the template-page.js file and rename it as my-new-page.js to get you going. The name of the file in the pages directory will result in a route of the same name. e.g. my-new-page.js => /my-new-page.

Adding to the side nav

To add a link to a new page in the side bar, add the new page's file name to the pages.json file in the pages directory. Make sure it is in quotes and followed by : []. For example:

"my-new-page": []

Note: if you are adding to the middle of the list, end the new line with a comma. If it is the last list item, do not end the line with a comma.

Linking between pages

Internal linking: Use the <PrototypeAnchor /> not the Paste Anchor. It is a wrapper around the Paste Anchor suitable for NextJS websites. It looks and behaves exactly like a Paste Anchor(link takes you to an external page).

Ways to get started

The prototyping kit can be quickly deployed to the following platforms:

Edit in Codesandbox
Deploy to Vercel
Deploy to Netlify