This repository contains a collection of reusable React components. They require React and Next.js, since some use Next.js (next/link
, next/router
).
See https://github.com/source-cooperative/viewers.source.coop/ for an example of how to use these components.
The code for the reusable components is in the packages/components
directory.
See the demo at https://source-cooperative.github.io/components/.
The code for the demo is in the apps/demo
directory.
This is a monorepo managed with npm workspaces. It contains two workspaces: components
, and components-demo
which depends on components
.
To install:
npm install
To build the workspaces:
npm run build -ws
To run the demo:
npm run dev -w components-demo