LabDAW

Installation

Set audio/ui up by hand in your framework, as the prompt of Get Started does for you.

The prompt of the Get Started page does this for you. Here is what it sets up by hand, in your framework.

Prerequisites

audio/ui is built on React 19 and Tailwind CSS v4. Set up both first, with shadcn/ui: the shadcn/ui installation guide covers the environment.

Install a primitive

Copy a styled component with the shadcn CLI. @audio-ui is in shadcn's registry directory, so there is nothing to configure:

pnpm dlx shadcn@latest add @audio-ui/knob

Or, without the styles, copy the headless primitive and style it yourself:

pnpm dlx shadcn@latest add @audio-ui/knob-react

The same works for every item of the Docs, including the block-* blocks and demos you install with @audio-ui/…. You can also install by manual copy, for full control.

Choose a base

A base is a complete set of components over one library of behaviors: focus, keys, popups. audio/ui ships two, as styles of the registry, each in the eight looks (nova, vega, maia, lyra, mira, luma, rhea, sera):

BaseStyle in components.jsonBehaviors from
basebase-nova@base-ui/react
ui-sdkui-sdk-nova@ui-sdk/react

The style you set chooses. Every item installs the same way, npx shadcn@latest add @audio-ui/knob, and the base decides what comes with it: the ui components an item uses (button, select, dialog, menus) and the items that name a library, such as the rocker switch and the parameter field, which have a variant in each base. Pick one base for a project: files of the other bring their own library along.

components.json
{
  "style": "ui-sdk-nova"
}

Each base publishes these ui components itself, over its own library: accordion, alert dialog, avatar, badge, button, button group, calendar, carousel, checkbox, collapsible, combobox, command, context menu, dialog, drawer, dropdown menu, empty, hover card, input, input group, input OTP, item, kbd, menubar, navigation menu, pagination, popover, progress, radio group, resizable, scroll area, select, separator, sheet, slider, switch, tabs, textarea, toast (sonner on base), toggle, toggle group, toolbar and tooltip. Those with no behavior library of their own (alert, card, field, label, skeleton, table…) come from shadcn. Any other component you add comes from shadcn, over the library of your project.

On ui-sdk, declare its layer first in your global stylesheet, above Tailwind's import, so your own styles win over its behavior CSS:

src/styles/globals.css
@layer ui-sdk;
@import "tailwindcss";

In the customizer of this site, the Component Library picker switches the base the previews and the code shown are for.

Shared files

primitive.ts, grid.ts, frame.ts and pitch.ts are shared: every primitive that reads one installs it at the same path. The CLI skips a file your project already holds, so you keep the copy you installed first. These files only gain exports, never lose one, so a primitive installed later still finds what it reads. To pick up an addition, ask the CLI to overwrite (npx shadcn@latest add <item> --overwrite), or copy the file from its item by hand.

Without the CLI

Each item is a JSON file at its address, and the CLI only reads it: you can do the same by hand. Open the address of the item (for the knob in Vue, https://www.audio-ui.dev/r/styles/ui-sdk-nova/knob-vue.json), write each entry of files to its path under components/audio-ui/ with its content, and install the packages its dependencies lists. An agent can do this for you: the prompt of Get Started says how.

Use it

Import it from where it landed, through your components alias:

import { Knob } from "@/components/audio-ui/knob";

The page of each component has its parts, its options and an example in your framework: Knob is the first to open.

What a component brings

A primitive imports no package of ours, only the kernel. A component that needs the audio logic (pitch, MIDI, musical time, analysis) installs the engine's modules it imports with itself, as files in lib/engine/<module>/, and the npm packages they use. Like every file of the registry, they are yours: an update is installing the item again with --overwrite (npx shadcn@latest add @audio-ui/engine-time --overwrite in React, npx @audio-ui/cli add engine-time --overwrite in the other frameworks).

Styling

Components are styled with a design token system defined by CSS variables and implemented with Tailwind CSS, following the same conventions as shadcn/ui so they're fully customizable. See the Styling guide for details.

Continue with First Component to add a knob to your app.

Built by Ouest Labs, the source code is available on GitHub.
RSS