Components · API reference

Component reference.

56 components, 2 hooks, 15 tokens, 78 interfaces. Each component has its own page with a live preview, the example code, the API table, and related types. Open any of them in the playground to tweak interactively.

$ npm install @ossrandom/design-system

Foundations

Start with the design tokens — colors, typography, spacing, radii, shadows, motion. Live values, theme-aware.

Theme

Foundation. Mount once near the root.

src/components/theme.tsx

Layout

Surfaces, spacing, app shell.

src/components/layout.tsx · src/components/page.tsx

Buttons & actions

Anything you click to do something.

src/components/buttons.tsx

Forms & inputs

Text, selects, toggles, dates, files.

src/components/inputs.tsx · src/components/selects.tsx · src/components/form-controls.tsx

Data display

Tables, stats, badges, avatars, timeline.

src/components/data-display.tsx · src/components/badges.tsx

Navigation

Tabs, menus, breadcrumb, pagination.

src/components/navigation.tsx

Feedback

Status, modals, toasts, tooltips.

src/components/feedback.tsx

Content

Code, markdown, terminal, chat, RTE.

src/components/code.tsx · src/components/chat.tsx

Charts

Opt-in subpath — Chart, Sparkline, Donut, RadialGauge, UptimeBar, Treemap, ServiceMap.

src/charts/ · import from "@ossrandom/design-system/charts"