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@1.0pnpm add soft-ui-docs@1.0yarn add soft-ui-docs@1.0bun add soft-ui-docs@1.0npx jsr add soft-ui-docs@1.0Create 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 devpnpm devyarn devbun run devnpm run devUpgrading to 1.0? createShape(opts)() becomes defineShape(opts) — drop the
trailing call and rename. See the 1.0 guide.