### Install UISet components with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/quick-start.md Installs the UISet, app-shell, page-header, field, select, switch, button, and toast components via the shadcn CLI. Run this in your project root before writing the screen. ```bash npx shadcn@latest add superzero11/uiset/uiset superzero11/uiset/app-shell superzero11/uiset/page-header superzero11/uiset/field superzero11/uiset/select superzero11/uiset/switch superzero11/uiset/button superzero11/uiset/toast ``` -------------------------------- ### Setup Commands for UISet Development Source: https://github.com/superzero11/uiset/blob/main/CONTRIBUTING.md Install dependencies, install Playwright browsers, and start the development servers. Requires Node 22 or newer and pnpm 10. ```bash pnpm install pnpm exec playwright install chromium webkit firefox pnpm dev # the site at http://localhost:5620 pnpm web:dev # the Web Components pages at http://localhost:5640 ``` -------------------------------- ### Prompt to start from for coding agents Source: https://github.com/superzero11/uiset/blob/main/docs/ai.md A starting prompt for coding agents using UISet. It instructs the agent to read the llms.txt for available items, install items with `npx shadcn@latest add superzero11/uiset/`, wrap the app in ``, and avoid hand-writing keyboard handling or ARIA that UI SDK covers. ```text This project uses UISet (components, kits, templates and themes for Vercel's UI SDK). Read https://uiset.dev/llms.txt for what's available, and the docs page for each item you use. Install items with: npx shadcn@latest add superzero11/uiset/ Wrap the app in from @/components/ui/uiset. Don't hand-write keyboard handling or ARIA that a UI SDK component covers, and give every control a name. ``` -------------------------------- ### Install @uiset/web package Source: https://github.com/superzero11/uiset/blob/main/README.md Install the Web Components package for use with Vue, Svelte, Solid, Angular, or plain HTML. ```bash npm install @uiset/web @ui-sdk/web ``` -------------------------------- ### Development Commands Source: https://github.com/superzero11/uiset/blob/main/README.md Commands to install dependencies, run the dev server, run checks, build the registry, and run install tests. ```bash pnpm install pnpm exec playwright install chromium webkit firefox pnpm dev # the site at http://localhost:5620 pnpm check # typecheck, unit tests, browser tests pnpm registry:build # registry.json, public/r, the docs and llms.txt scripts/install-test.sh ``` -------------------------------- ### Install dashboard template with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/README.md Install the dashboard template built from UISet items. Use this command to add the template to your project. ```bash npx shadcn@latest add superzero11/uiset/dashboard ``` -------------------------------- ### Install chart components with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/charts.md Install all chart components (line-chart, bar-chart, scatter-chart, heatmap, segmented-bar, sparkline) from the superzero11/uiset registry using npx shadcn. ```bash npx shadcn@latest add superzero11/uiset/line-chart superzero11/uiset/bar-chart \ superzero11/uiset/scatter-chart superzero11/uiset/heatmap \ superzero11/uiset/segmented-bar superzero11/uiset/sparkline ``` -------------------------------- ### Start the site and harness Source: https://github.com/superzero11/uiset/blob/main/bench/README.md Run these two commands in separate terminals to start the site on :5620 and the harness on :5697. The harness uses Google Chrome locally and Chromium in CI. ```bash pnpm dev # the site on :5620 ``` ```bash node bench/server.mjs # the harness on :5697 (Google Chrome locally, Chromium in CI) ``` -------------------------------- ### Install @ui-sdk/svelte Source: https://github.com/superzero11/uiset/blob/main/docs/svelte.md Install the version of @ui-sdk/svelte that UISet pins. ```bash npm install @ui-sdk/svelte@0.1.0-beta.5 ``` -------------------------------- ### Install Web Components build with pnpm Source: https://github.com/superzero11/uiset/blob/main/docs/installation.md pnpm resolves UI SDK's latest tag, which is an older beta than the one UISet pins, so name the versions there. ```bash pnpm add @uiset/web @ui-sdk/web@0.1.0-beta.5 @ui-sdk/core@0.1.0-beta.5 ``` -------------------------------- ### Install UISet and components with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/skills/uiset/SKILL.md Adds the UISet, button, and field components to the project. Run from the project root. ```bash npx shadcn@latest add superzero11/uiset/uiset superzero11/uiset/button superzero11/uiset/field ``` -------------------------------- ### Install @ui-sdk/vue Source: https://github.com/superzero11/uiset/blob/main/docs/vue.md Install the version of @ui-sdk/vue that UISet pins, 0.1.0-beta.5. ```bash npm install @ui-sdk/vue@0.1.0-beta.5 ``` -------------------------------- ### Install Board Component with shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/board.md Install the board component using the shadcn CLI. This command adds the board component from the superzero11/uiset registry. ```bash npx shadcn@latest add superzero11/uiset/board ``` -------------------------------- ### Install UISet skill for coding agents Source: https://github.com/superzero11/uiset/blob/main/README.md Adds the UISet skill to a coding agent so it builds with UISet correctly (install, skins, naming controls, styling with variables, picking kits). Run in a terminal. ```bash npx skills add superzero11/uiset ``` -------------------------------- ### IDE Web Components JavaScript Setup Source: https://github.com/superzero11/uiset/blob/main/docs/web-components.md JavaScript setup for the IDE web components: assigns file paths, status, and event listeners. The file tree fires 'open' and 'rename' events; tabs manage files and render panels; palette opens files via 'openfile' event. ```ts files.paths = Object.keys(project) // a path ending in "/" is an empty folder files.status = { "src/index.ts": "modified" } // version control marks files.addEventListener("open", (e) => openFile(e.detail.value)) files.addEventListener("rename", (e) => rename(e.detail.from, e.detail.value)) // or e.detail.refuse("why") tabs.files = [{ path: "src/index.ts", dirty: true }] tabs.renderPanel = (path) => Object.assign(document.createElement("uiset-code-editor"), { value: project[path] }) tabs.addEventListener("close", (e) => closeFile(e.detail.value)) palette.files = Object.keys(project) palette.addEventListener("openfile", (e) => openFile(e.detail.value)) ``` -------------------------------- ### Install any UISet component with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/looking-for.md Use this command to install any UISet component listed on the page. Replace with the component name (e.g., scheduler, combobox, date-picker). ```bash npx shadcn@latest add superzero11/uiset/ ``` -------------------------------- ### Install UISet Web Components packages Source: https://github.com/superzero11/uiset/blob/main/docs/web-components.md Install the UISet web package and the UI SDK peer packages. UI SDK is a peer dependency; import components from `@ui-sdk/web/`. The stylesheet already includes UI SDK's `web.css`. ```bash npm install @uiset/web @ui-sdk/web@0.1.0-beta.5 @ui-sdk/core@0.1.0-beta.5 ``` -------------------------------- ### Install chat components with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/chat.md Installs the five chat packages from the superzero11/uiset registry. The last four bring 'chat' with them; 'chat-response' also adds react-markdown, remark-gfm, remend, and shiki. ```bash npx shadcn@latest add superzero11/uiset/chat superzero11/uiset/chat-response \ superzero11/uiset/chat-parts superzero11/uiset/chat-composer superzero11/uiset/chat-sidebar ``` -------------------------------- ### Install agent-console with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/agent-console.md Adds the agent-console component to your project using the shadcn CLI. Run this command in your terminal. ```bash npx shadcn@latest add superzero11/uiset/agent-console ``` -------------------------------- ### Install IDE parts and IDE page template Source: https://github.com/superzero11/uiset/blob/main/docs/ide.md Two npx commands to add the IDE parts and the full IDE page template from the superzero11/uiset registry. ```bash npx shadcn@latest add superzero11/uiset/ide # the parts npx shadcn@latest add superzero11/uiset/ide-app # the whole page ``` -------------------------------- ### Install UISet with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/README.md Adds the UISet package to a project using the shadcn CLI. Run this command in a terminal. ```bash npx shadcn@latest add superzero11/uiset/uiset ``` -------------------------------- ### Install chat-app template with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/chat.md Run this command to add the chat-app template from the superzero11/uiset registry to your project. ```bash npx shadcn@latest add superzero11/uiset/chat-app ``` -------------------------------- ### Add UISet item from site address Source: https://github.com/superzero11/uiset/blob/main/docs/installation.md Alternative address to add an item, served from the site instead of GitHub. ```bash npx shadcn@latest add https://uiset.dev/r/data-grid.json ``` -------------------------------- ### Install Studio components with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/studio-kit.md Command to add the Studio kit components (knob, patch-bay, fader, level-meter, step-sequencer) to a project using shadcn CLI. ```bash npx shadcn@latest add superzero11/uiset/knob superzero11/uiset/patch-bay superzero11/uiset/fader superzero11/uiset/level-meter superzero11/uiset/step-sequencer ``` -------------------------------- ### Chart component usage examples Source: https://github.com/superzero11/uiset/blob/main/docs/charts.md Shows the common props for all charts (title, data, accessors, format) and usage examples for LineChart, BarChart, SegmentedBar, Heatmap, ScatterChart, and Stat. Sparkline and Stat render in a Server Component. ```tsx d.month} series={[ { key: "revenue", label: "Revenue", value: (d) => d.revenue }, { key: "costs", label: "Costs", value: (d) => d.costs }, ]} format={(n) => money.format(n)} /> d.region} series={[{ key: "revenue", label: "Revenue", value: (d) => d.revenue }]} orientation="horizontal" sort="descending" /> d.day} column={(d) => d.hour} value={(d) => d.sessions} measure="Sessions" /> d.name} x={(d) => d.days} y={(d) => d.size} xLabel="Days to close" yLabel="Deal size" /> ``` -------------------------------- ### Install Mobile Components with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/mobile.md Use this command to add the mobile components to your project. It requires the shadcn CLI and the superzero11/uiset registry. ```bash npx shadcn@latest add superzero11/uiset/mobile ``` -------------------------------- ### Install schema-form, inline-edit, and upload components Source: https://github.com/superzero11/uiset/blob/main/docs/forms.md Run this command to add the three form-related components from the superzero11/uiset registry: SchemaForm, InlineEdit, and Upload. ```bash npx shadcn@latest add superzero11/uiset/schema-form superzero11/uiset/inline-edit superzero11/uiset/upload ``` -------------------------------- ### Install Scheduler with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/scheduler.md Adds the scheduler component to your project using the shadcn CLI. Run this command in your terminal. ```bash npx shadcn@latest add superzero11/uiset/scheduler ``` -------------------------------- ### Install data-grid with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/data-grid.md Adds the `data-grid` item from the `superzero11/uiset` registry, which includes `DataGrid`, `DataGridToolbar`, and framework-free pieces. Run in a terminal. ```bash npx shadcn@latest add superzero11/uiset/data-grid ``` -------------------------------- ### Install rich-text with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/rich-text.md Adds the rich-text component to your project via the shadcn CLI. Run from your project root. ```bash npx shadcn@latest add superzero11/uiset/rich-text ``` -------------------------------- ### Use UISet Web Components Source: https://github.com/superzero11/uiset/blob/main/README.md Import the Web Components module and use the custom elements with the 'ink' skin. The example shows a rich text editor with a label and value. ```html ``` -------------------------------- ### npx shadcn@latest add Source: https://github.com/superzero11/uiset/blob/main/public/docs/charts.md Install the chart components from the uiset registry using the shadcn CLI. This command adds the line-chart, bar-chart, scatter-chart, heatmap, segmented-bar, and sparkline components to your project. ```APIDOC ## [CLI] npx shadcn@latest add ### Description Install the chart components from the uiset registry using the shadcn CLI. This command adds the line-chart, bar-chart, scatter-chart, heatmap, segmented-bar, and sparkline components to your project. ### Command ```bash npx shadcn@latest add superzero11/uiset/line-chart superzero11/uiset/bar-chart \ superzero11/uiset/scatter-chart superzero11/uiset/heatmap \ superzero11/uiset/segmented-bar superzero11/uiset/sparkline ``` ``` -------------------------------- ### LineChart stacked layout example Source: https://github.com/superzero11/uiset/blob/main/docs/charts.md Shows the stacked layout for LineChart, which renders areas to a total and includes the total in readings and table. ```tsx ``` -------------------------------- ### Source: https://github.com/superzero11/uiset/blob/main/docs/web-components.md Displays a package manager command for installing or running a package. The package manager choice is consistent across the page and remembered for future visits. ```APIDOC ## ### Description Displays a package manager command for installing or running a package. The package manager choice is consistent across the page and remembered for future visits. ### Attributes - `install` (string) - Optional - Package name(s) to install. - `dev` (boolean) - Optional - When present, installs as a dev dependency. - `run` (string) - Optional - Script name to run. ### Usage ```html ``` ### Notes - The package manager is chosen once for all commands on the page, including React components, and is persisted for the next visit. ``` -------------------------------- ### Use Web Components in HTML Source: https://github.com/superzero11/uiset/blob/main/docs/installation.md Load the stylesheet and module, then use the custom elements. With a bundler, import the stylesheet instead: import "@uiset/web/uiset.css". The package ships its TypeScript types. ```html ``` -------------------------------- ### commands Source: https://github.com/superzero11/uiset/blob/main/docs/chat.md Configuration for slash commands shown after typing '/' at the start of the message. Each command has a value, label, and optional description. ```APIDOC ## commands ### Description Configuration for slash commands shown after typing '/' at the start of the message. Each command has a value, label, and optional description. ### Parameters - **value** (string) - The command value. - **label** (string) - The command label. - **description** (string, optional) - Description of the command. ``` -------------------------------- ### commands Source: https://github.com/superzero11/uiset/blob/main/public/llms-full.txt Configuration for slash commands shown after '/' at the start of the message. Each command has a value, label, and optional description. Choosing one inserts the trigger and label into the composer. ```APIDOC ## commands ### Description Configuration for slash commands shown after '/' at the start of the message. Each command has a value, label, and optional description. Choosing one inserts the trigger and label into the composer. ### Parameters - **value** (string) - The command value. - **label** (string) - The command label. - **description** (string, optional) - A description of the command. ### Behavior - Commands appear after '/' at the start of the message. - Choosing a command inserts the trigger and label (e.g., "/summarize "). - `onSubmit` receives the inserted text, not the item's `value`. ``` -------------------------------- ### Initialize shadcn CLI project Source: https://github.com/superzero11/uiset/blob/main/docs/installation.md Run once to set up a new project for shadcn CLI. Writes components.json, which tells the CLI where components go and what @/ means. Skip if your project already uses shadcn/ui. UISet doesn't need Tailwind; any choice works if init asks. ```bash npx shadcn@latest init ``` -------------------------------- ### moveEvent(event, day, start) Source: https://github.com/superzero11/uiset/blob/main/public/docs/scheduler.md Moves an existing event to a new day and start time. This method is designed for agents and follows the same rules as a drag operation. ```APIDOC ## moveEvent(event, day, start) ### Description Moves an existing event to a new day and start time. This method is designed for agents and follows the same rules as a drag operation. ### Parameters - **event** (object) - Required - The event to move (identified by title or id) - **day** (string) - Required - The new day by name (e.g., "Tuesday") - **start** (string) - Required - New start time as `HH:MM` ### Response Returns the moved event or an error explaining why the time doesn't fit. ``` -------------------------------- ### Add components or kits with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/README.md Use this command to add components, kits, or a whole page. Each command brings only what it uses. ```bash npx shadcn@latest add superzero11/uiset/select superzero11/uiset/data-grid ``` -------------------------------- ### play(options?) Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/carousel.md Starts auto-rotation. ```APIDOC ## play(options?) ### Description Starts auto-rotation. ### Method `play(options?)` ### Parameters - **options** (CarouselPlayingOptions) - Optional - An object containing `{ reason, event }` passed to the change callback. ### Returns - **boolean** - `true` if playing started, `false` if canceled or already playing. ``` -------------------------------- ### Board Usage Example Source: https://github.com/superzero11/uiset/blob/main/docs/board.md Example usage of the Board component with toolbar, board, and dialog. The board is controlled via a controller from createBoardController, and columns can have a limit that refuses cards past it. The filter hides cards without moving them, and onAddCard returns the new card's id. ```tsx const [board] = useState(createBoardController) setLanes(next)} onCardOpen={setOpen} onAddCard={(column, title) => add(column, title) /* return the new card's id */} filter={(card) => matches(card, query, person)} /> setOpen(null)} /> ``` -------------------------------- ### getPage() Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/carousel.md Returns the current page number, starting from 1. ```APIDOC ## getPage() ### Description Returns the current page number, starting from 1. ### Method `getPage()` ### Returns - **number** - The current page number. ``` -------------------------------- ### Use UISet root component Source: https://github.com/superzero11/uiset/blob/main/docs/theming.md Wrap your app with the UISet component to apply the skin. Configure skin, keyColor, theme, sound, and haptics via props. Web Components use `` similarly. ```tsx import { UISet } from "@/components/ui/uiset" ``` -------------------------------- ### CarouselPlayToggle Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/carousel.md Starts and stops rotation. Renders a button. Takes the same props as CarouselPrevious. ```APIDOC ## CarouselPlayToggle ### Description Starts and stops rotation. Renders a button. Takes the same props as CarouselPrevious. ### Props - `controller?` (`object`) - Optional - The carousel this part drives when it isn't inside one, like buttons in a page header. ``` -------------------------------- ### Use @uiset/web with UI SDK elements Source: https://github.com/superzero11/uiset/blob/main/web/README.md Include the UISet stylesheet and import UI SDK elements and the UISet module. The example shows a root element with skin and theme attributes, and UI SDK button and switch elements. The stylesheet already includes UI SDK's web.css and styles nothing outside . ```html ``` -------------------------------- ### controller.getQuery() Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/trigger-menu.md Returns the text after the trigger, or after the current argument's start. Empty while closed. ```APIDOC ## controller.getQuery() ### Description Returns the text after the trigger, or after the current argument's start. Empty while closed. ### Method getQuery() ### Returns - **string** - The current query text. ``` -------------------------------- ### setPlaying(playing, options?) Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/carousel.md Starts or stops auto-rotation. Returns false if the change is canceled or the state is unchanged. ```APIDOC ## setPlaying(playing, options?) ### Description Starts or stops auto-rotation. Returns false if the change is canceled or the state is unchanged. ### Method `setPlaying(playing, options?)` ### Parameters - **playing** (boolean) - Required - `true` to start, `false` to stop. - **options** (CarouselPlayingOptions) - Optional - An object containing `{ reason, event }` passed to the change callback. ### Returns - **boolean** - `true` if the playing state changed, `false` if canceled or unchanged. ``` -------------------------------- ### Synth component using Studio instruments Source: https://github.com/superzero11/uiset/blob/main/docs/studio-kit.md Example React component that composes Knob, PatchBay, PatchBayJack, Fader, LevelMeter, and StepSequencer inside a UISet with the studio skin and sound enabled. Shows state management for cutoff, cables, and pattern. ```tsx import { useState } from "react" import { Fader } from "@/components/ui/fader" import { Knob } from "@/components/ui/knob" import { LevelMeter } from "@/components/ui/level-meter" import { PatchBay, PatchBayJack, type Cable } from "@/components/ui/patch-bay" import { StepSequencer } from "@/components/ui/step-sequencer" import { UISet } from "@/components/ui/uiset" export function Synth() { const [cutoff, setCutoff] = useState(900) const [cables, setCables] = useState([]) const [pattern, setPattern] = useState(["1", "5", "9", "13"]) return ( `${Math.round(hz)} Hz`} /> ) } ``` -------------------------------- ### Reasons Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/calendar.md Explains the `details.reason` values that indicate why the value, month, focus, or range start changed. ```APIDOC ## Reasons ### Description Explains the `details.reason` values that indicate why the value, month, focus, or range start changed. ### Value Change Reasons - `item-press` (MouseEvent | KeyboardEvent) - A member of a collection was chosen: a menu item, a tab, a radio or a checkbox item. - `imperative` (none) - A controller or `api` call, or a property set on a web component. ### Month Change Reasons - `item-press` (MouseEvent | KeyboardEvent) - A member of a collection was chosen: a menu item, a tab, a radio or a checkbox item. - `imperative` (none) - A controller or `api` call, or a property set on a web component. - `previous-press` (MouseEvent | KeyboardEvent) - A pagination's or a carousel's Previous part was pressed. - `next-press` (MouseEvent | KeyboardEvent) - A pagination's or a carousel's Next part was pressed. - `list-navigation` (KeyboardEvent) - Arrow, Home or End keys moved the selection, typing picked an item, or Ctrl or ⌘ with A selected every item of a listbox. - `select-change` - (no description provided) ### Focus Change Reasons - `item-press` (MouseEvent | KeyboardEvent) - A member of a collection was chosen: a menu item, a tab, a radio or a checkbox item. - `imperative` (none) - A controller or `api` call, or a property set on a web component. - `list-navigation` (KeyboardEvent) - Arrow, Home or End keys moved the selection, typing picked an item, or Ctrl or ⌘ with A selected every item of a listbox. - `focus-in` (FocusEvent) - Keyboard focus moved into the component, which stops a rotating carousel, as the carousel pattern asks, or onto a canvas item, which brought it into view, or onto a calendar's day another way, like a screen reader's. ### Range Start Change Reasons - `item-press` (MouseEvent | KeyboardEvent) - A member of a collection was chosen: a menu item, a tab, a radio or a checkbox item. - `escape-key` (KeyboardEvent) - Escape, or a submenu's close key (ArrowLeft in left-to-right layouts). ``` -------------------------------- ### DatePickerHint Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/date-picker.md Describes the expected format, and its state includes an example date. Renders a span that describes the input. ```APIDOC ## DatePickerHint ### Description Describes the expected format, and its state includes an example date. Renders a span that describes the input. ### Props Takes no props of its own. ### State - `placeholder` (`string`) - The format, with a letter for each digit, like "MM/DD/YYYY", "TT.MM.JJJJ" in German. - `example` (`string`) - December 31 of this year in the format, like "12/31/2026". ``` -------------------------------- ### Menu Events Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/menu.md Event callbacks for the Menu component. Callbacks get the new state first, then the details. ```APIDOC ## Menu Events ### Description Event callbacks for the Menu component. Callbacks get the new state first, then the details. ### Events | Prop | On | Receives | | --- | --- | --- | | `onOpenChange` | `Menu` | `(open, details)`: the new state, and the [reason](#reasons) | | `onOpenChangeComplete` | `Menu` | `(open)`, after the animation | | `onPayloadChange` | `Menu` | `(payload, details)`: the content's new payload, and the [reason](#reasons) | | `onAction` | `Menu` | `(value, { event })` for every plain item, including items in submenus | | `onCheckedChange` | `Menu` | `(checked, details)`, with the item's value in `details.value`. For data menus | | `onValueChange` | `Menu` | `(value, details)`, with the group's name in `details.group`. For data menus | | `onDismissAttempt` | `Menu` | `({ reason, event })`, when a dismissal was refused | | `onSelect` | `MenuItem` | `(event)`, before the menu closes. `event.preventDefault()` keeps it open | | `onCheckedChange` | `MenuCheckboxItem` | `(checked, details)`, before the menu's | | `onValueChange` | `MenuRadioGroup` | `(value, details)`, before the menu's | ``` -------------------------------- ### isOpen() Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/menu.md Returns whether the menu is currently open. Returns false as soon as it starts closing, while it still animates out. ```APIDOC ## isOpen() ### Description Returns whether the menu is currently open. Returns false as soon as it starts closing, while it still animates out. ### Method Function ### Signature `isOpen(): boolean` ### Parameters None. ### Returns - **boolean** - `true` if the menu is open, `false` otherwise. ``` -------------------------------- ### Install Canvas with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/canvas.md Adds the Canvas component to your project using the shadcn CLI. Run this command in your terminal. ```bash npx shadcn@latest add superzero11/uiset/canvas ``` -------------------------------- ### controller.isOpen() Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/popover.md Returns whether the popover is currently open. Returns false as soon as it starts closing, even while it still animates out. ```APIDOC ## controller.isOpen() ### Description Returns whether the popover is currently open. Returns false as soon as it starts closing, even while it still animates out. ### Method Function ### Signature `isOpen(): boolean` ### Parameters None ### Returns - `boolean` - True if open, false otherwise. ``` -------------------------------- ### DescriptionList Source: https://github.com/superzero11/uiset/blob/main/public/llms-full.txt Renders a description list with items and layout. ```APIDOC ## DescriptionList ### Description Renders a description list with items and layout. ### Props - `items` (array) - Required - Array of `{ term, details }`. - `layout` (string) - Optional - Default: `"columns"`. Either `"columns"` or `"stacked"`. ``` -------------------------------- ### Loading Source: https://github.com/superzero11/uiset/blob/main/public/llms-full.txt Wraps content and shows a loading state. ```APIDOC ## Loading ### Description Wraps content and shows a loading state. ### Props - `loading` (boolean) - Required - Whether loading. - `label` (string) - Optional - Default: `"Loading…"`. ``` -------------------------------- ### previous(options?) Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/carousel.md Moves to the previous page, or wraps to the last page if `loop` is enabled. Returns false at the start if not looping. ```APIDOC ## previous(options?) ### Description Moves to the previous page, or wraps to the last page if `loop` is enabled. Returns false at the start if not looping. ### Method `previous(options?)` ### Parameters - **options** (CarouselPageOptions) - Optional - An object containing `{ reason, event }` passed to the change callback. ### Returns - **boolean** - `true` if the page changed, `false` if at the start and not looping. ``` -------------------------------- ### Add UISet items via shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/installation.md Adds individual items like button, field, and data-grid. Each item lands in components/ui/ and brings the items it depends on. Every docs page has the command for its item, for pnpm, npm, yarn and bun. ```bash npx shadcn@latest add superzero11/uiset/button superzero11/uiset/field superzero11/uiset/data-grid ``` -------------------------------- ### EventDialog Source: https://github.com/superzero11/uiset/blob/main/docs/scheduler.md Creates or edits events with fields for title, day, start, end, and location. Delete requires confirmation first. ```APIDOC ## EventDialog ### Description Creates or edits events with fields for title, day, start, end, and location. Delete requires confirmation first. ### Usage ```tsx setOpen(null)} /> ``` ### Properties - **schedule** (ScheduleController) - Required - The schedule controller - **startHour** (number) - Required - Start hour for the dialog - **endHour** (number) - Required - End hour for the dialog - **step** (number) - Required - Time step in minutes - **event** (object) - Required - The event being edited or created - **tracks** (Array) - Required - Available tracks - **onSave** (function) - Required - Callback when saving - **onDelete** (function) - Required - Callback when deleting - **onClose** (function) - Required - Callback when closing the dialog ``` -------------------------------- ### createInputController Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/input.md Creates a controller object that reads and writes the input field from anywhere, with methods to get, set, clear, and focus. ```APIDOC ## createInputController ### Description Creates a controller object that reads and writes the input field from anywhere, with methods to get, set, clear, and focus. ### Methods - `getValue()` (() => string) - The current value. - `setValue(value, options?)` ((value: string, options?: ChangeOptions | undefined) => boolean) - Sets the value as if the user typed it, so `input` fires. Returns false when the change was canceled or nothing changed. - `clear(options?)` ((options?: ChangeOptions | undefined) => boolean) - Empties the field, as if the user deleted the text, so `input` fires. Returns false when the change was canceled or nothing changed. - `focus()` (() => void) - Moves focus to the field. ``` -------------------------------- ### UISet Source: https://github.com/superzero11/uiset/blob/main/skills/uiset-studio/references/studio-kit.md Root component that applies a skin and optional sound to the studio instruments. ```APIDOC ## UISet ### Description Root component that applies a skin and optional sound to the studio instruments. ### Properties - **skin** (string) - Required - Skin name (e.g., "studio") - **sound** (boolean) - Optional - Enable mechanical sounds on interaction ``` -------------------------------- ### Scheduler usage example with controller, toolbar, and dialog Source: https://github.com/superzero11/uiset/blob/main/docs/scheduler.md Shows how to wire together SchedulerToolbar, Schedule, and EventDialog with a controller. The Schedule renders events on tracks (days or rooms) with configurable hours and step. EventDialog uses the controller to enforce schedule rules. ```tsx const [schedule] = useState(createScheduleController) setOpen(draft)} /> ({ id: d, label: longDate(d), short: shortDate(d) }))} events={events} onEventsChange={(next, { action, id }) => setEvents(next)} onEventOpen={setOpen} startHour={8} endHour={19} step={15} now={new Date()} timeZone="America/Los_Angeles" today={todayIso} /> setOpen(null)} /> ``` -------------------------------- ### Create agent and interact with form (TypeScript) Source: https://github.com/superzero11/uiset/blob/main/docs/quick-start.md Creates an agent from @ui-sdk/react/agent, takes a snapshot of the form controls, and performs an action to set the Region select to 'North America'. Requires every control to have a name attribute. ```ts import { createAgent } from "@ui-sdk/react/agent" const agent = createAgent() agent.snapshot() // Project name, Region, Preview deployments, Save settings… await agent.act({ steps: [{ ref: "Region", action: "setValue", args: ["North America"] }] }) ``` -------------------------------- ### createUploadQueue Function Source: https://github.com/superzero11/uiset/blob/main/public/llms-full.txt Creates an upload queue outside of React. Use it to manage uploads programmatically with start, sync, and subscribe methods. ```APIDOC ## createUploadQueue Function ### Description Creates an upload queue outside of React. Use it to manage uploads programmatically with start, sync, and subscribe methods. ### Parameters - `options` (function) - A function that returns the queue options (e.g., `{ upload, concurrency }`). ### Returns - `queue` (object) - The upload queue. - `start()` - Starts the queue. - `sync(files)` - Syncs the queue with the current file list. - `subscribe(listener)` - Subscribes to changes. ``` -------------------------------- ### controller.isOpen() Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/hover-card.md Returns whether the hover card is currently open. Returns false as soon as it starts closing, even while it is still animating out. ```APIDOC ## controller.isOpen() ### Description Returns whether the hover card is currently open. Returns false as soon as it starts closing, even while it is still animating out. ### Method Function ### Signature `isOpen(): boolean` ### Returns - `boolean` - `true` if open, `false` otherwise. ``` -------------------------------- ### Open a benchmark run and record the result Source: https://github.com/superzero11/uiset/blob/main/bench/README.md Open a run for a task and approach, let the agent work through the CLI, then record the result. The agent uses the same command with different subcommands. ```bash node bench/cli.mjs settings-bridge-1 open '{"task":"settings","approach":"bridge"}' ``` ```bash # … the agent works, through node bench/cli.mjs settings-bridge-1 … ``` ```bash node bench/cli.mjs settings-bridge-1 result ``` -------------------------------- ### LevelMeter Source: https://github.com/superzero11/uiset/blob/main/public/docs/studio-kit.md A Meter drawn as a ladder of lamps. ```APIDOC ## LevelMeter ### Description A Meter drawn as a ladder of lamps. ### Properties - **label** (string) - Required - The label for the meter. - **value** (number) - Required - The current value. ``` -------------------------------- ### createSliderController() Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/slider.md Creates a slider controller that can be passed as the `controller` prop. The controller provides methods to get and set the slider value programmatically. ```APIDOC ## createSliderController() ### Description Creates a slider controller that can be passed as the `controller` prop. The controller provides methods to get and set the slider value programmatically. ### Method N/A (SDK function) ### Endpoint N/A ### Parameters None ### Returns - **controller** (SliderController) - The slider controller instance. ### Methods #### getValue() - **Signature**: `() => Value` - **Description**: Returns the current value: a number, or one number per thumb. #### setValue(value, options?) - **Signature**: `(value: Value, options?: SliderChangeOptions | undefined) => boolean` - **Description**: Sets the value as a user would. The value is clamped, snapped to the step, and sorted. Returns `false` when the change is canceled. - **Parameters**: - `value` (Value) - Required - The new value. - `options` (SliderChangeOptions) - Optional - An object with `{ reason, event }` to specify the change reason and event. #### focus(thumb?) - **Signature**: `(thumb?: number | undefined) => void` - **Description**: Moves focus to a thumb, the first by default. - **Parameters**: - `thumb` (number) - Optional - The index of the thumb to focus. ``` -------------------------------- ### Controller Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/radio.md The controller object created with `createRadioGroupController()` and passed as the `controller` prop. It provides methods to get, set, and focus the radio value. ```APIDOC ## Controller ### Description A controller object created with `createRadioGroupController()` and passed as the `controller` prop. It allows programmatic control of the radio group. ### Methods - `getValue()` (`() => T | null`) - Returns the checked radio's value. - `setValue(value, details?)` (`(value: T | null, details?: RadioGroupChangeOptions | undefined) => boolean`) - Checks a radio, as a user would. Disabled radios and read-only groups ignore it. Returns `false` when the change is canceled. - `focus()` (`() => void`) - Moves focus to the checked radio, or the first one. Every write method takes an optional `{ reason, event }`, runs the change callback like a press, and returns `false` when the change is canceled. ``` -------------------------------- ### getQuery Source: https://github.com/superzero11/uiset/blob/main/src/site/docs/sdk/combobox.md Returns the input's text. ```APIDOC ## getQuery ### Description Returns the input's text. ### Method Function ### Signature `getQuery(): string` ### Returns - **string** - The current query text. ``` -------------------------------- ### Install Terminal component with shadcn CLI Source: https://github.com/superzero11/uiset/blob/main/docs/terminal.md Adds the Terminal component to your project using the shadcn CLI. Run this command in your project root. ```bash npx shadcn@latest add superzero11/uiset/terminal ``` -------------------------------- ### Install app-shell and related components with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/app-shell.md Adds the app-shell and related components from the superzero11/uiset registry. Each component is its own item, so add only the ones you use. They share shell/shell.css, and the ones with icons bring shell/icons.tsx. ```bash npx shadcn@latest add superzero11/uiset/app-shell superzero11/uiset/breadcrumbs \ superzero11/uiset/page-header superzero11/uiset/card superzero11/uiset/badge \ superzero11/uiset/stat superzero11/uiset/empty-state superzero11/uiset/skeleton \ superzero11/uiset/description-list superzero11/uiset/item-list superzero11/uiset/alert \ superzero11/uiset/kbd superzero11/uiset/spinner superzero11/uiset/stepper \ superzero11/uiset/search-field superzero11/uiset/copy-button superzero11/uiset/table \ superzero11/uiset/avatar-group superzero11/uiset/code-block ``` -------------------------------- ### Install agent-check with npx shadcn Source: https://github.com/superzero11/uiset/blob/main/docs/agent-check.md Adds the agent-check component to a UI SDK project. Works with any framework UI SDK serves because the bridge is the same in each. ```bash npx shadcn@latest add superzero11/uiset/agent-check ```