labsUI
v0.2.3Search, add, diff and update labsUI React components in your project.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search labsUI
Find labsUI components, blocks, hooks and helpers by name, export (useModal) or intent (date range, toast promise), and recipes for a whole app (blog, shop): a prompt checked on a fresh app with the items it used. All words must match, best match first; no query lists everything. Returns one line per hit: name, kind and summary, and says how many a limit left out. Start here when you don't know an item's name, then call view on the hits.
| Parameter | Type | Description |
|---|---|---|
kind | string | Only this kind: component (primitive), block (composed section), hook, helper, setup or recipe (a prompt for a whole app). |
limit | integer | Most results to return. Default: 12 with a query, everything without one. |
query | string | Words to match. Empty lists everything. |
view View labsUI items
Read the docs of labsUI items by name: exact props and types, a usage line, full examples, and the items and npm packages each brings along; for a recipe, its prompt, the items it uses and the patterns the result needs. Call it before writing code with a component instead of guessing props; find names with search, install with add.
| Parameter | Type | Description |
|---|---|---|
names * | array | Item names as search lists them, e.g. button or date-picker. |
source | boolean | Include the source files. |
add Add labsUI items
Install labsUI items into the project: copies each item and everything it imports, then installs their npm packages. Existing files are kept, never overwritten. Returns the files written, the packages installed, dependencies kept that differ from this version (call update on them) and anything to mount once in the root layout. Needs init first; dryRun previews. To bring installed items to a newer version, use update instead.
| Parameter | Type | Description |
|---|---|---|
names * | array | Item names as search lists them, e.g. button or date-picker. |
dryRun | boolean | Report what would change, write nothing. |
init Set up labsUI
Set up labsUI in a project, once, before add: writes the styles, theme, utils and motion provider, imports labsui.css into the Tailwind stylesheet and records settings in labsui.json. Returns warnings, the files written and the root layout code to add. Needs React 19 and Tailwind v4; run doctor first if unsure. Safe to repeat: existing files are kept. dryRun previews.
| Parameter | Type | Description |
|---|---|---|
dryRun | boolean | Report what would change, write nothing. |
diff Diff installed labsUI items
Compare installed labsUI items with this labsUI version. Returns a unified patch per changed file, from the registry file to the project file (+ lines exist only in the project), with formatting: true when only blank lines or indentation differ and changedBy saying whose change it is since the installed version: upstream (only labsUI changed it; update replaces the file), local (only you did; update keeps it) or both (update merges), unset when that version can't be fetched; matching items are left out, a named item that isn't installed comes back with installed: false, and when nothing differ…
| Parameter | Type | Description |
|---|---|---|
names | array | Installed item names, e.g. button. Empty: all installed items. |
update Update labsUI items
Bring installed labsUI items to this labsUI version. Unedited files are replaced; edited ones are merged three ways from the version that installed them, with conflict markers where both sides changed the same lines. Returns each changed item as replaced, merged, conflicts (with the files to resolve) or kept with the reason. Run diff first to see local edits; dryRun previews. Only for installed items: new ones go through add.
| Parameter | Type | Description |
|---|---|---|
dryRun | boolean | Report what would change, write nothing. |
names | array | Installed item names, e.g. button. Empty: all installed items. |
doctor Check the labsUI setup
Check the labsUI setup: React 19, Tailwind v4, the path alias, the stylesheet import, MotionProvider and themeScript wiring, mounted Toaster/Confirmer, missing npm packages or files, and local edits. Returns pass, warn or fail per check, each problem with its fix. Run it after init or add, or when components look unstyled; for line-level changes use diff.