clickworks
Docs / Getting started

Introduction

These are React components for the parts every website has, each built around a real mechanism. You copy them into your project as source, so you own every line.

Quick start

Run this in any React project. If it isn't set up for shadcn yet, the CLI asks a couple of questions first.

npx shadcn@latest add https://clickworks.dev/r/telescope-search.json

Then import it from components/clickworks/telescope-search/react. Every work's page has the full usage, props and styling.

How a work is built

  • A small engine with the physics and logic. It has no dependencies and is unit-tested.
  • A custom element that draws the work inside a shadow root, so your site's CSS can't break it.
  • A thin React component on top. It renders on the server and loads the element in the browser.

Every work respects reduced motion, works with the keyboard, and takes its colours from CSS custom properties.

Works

11 works so far: 10 free and 1 Pro. Each has its own page with a live demo, the install command and every prop.