Getting Started

(v0.9 — legacy. New projects should use v1.0.)

The install snippet pins to the version you're reading, so on this page it resolves to …@0.9.

Install

npm install soft-ui-docs@0.9.90
pnpm add soft-ui-docs@0.9.90
yarn add soft-ui-docs@0.9.90
bun add soft-ui-docs@0.9.90
npx jsr add soft-ui-docs@0.9.90

Create a shape

In 0.9 the API is createShape(), which returns a thunk you call to build:

import { createShape } from 'soft-ui-docs'

const card = createShape({ corners: 'rounded', radius: 1 })()

Start the dev server

npm run dev
pnpm dev
yarn dev
bun run dev
npm run dev

Upgrading to 1.0? createShape(opts)() becomes defineShape(opts) — drop the trailing call and rename. See the 1.0 guide.