labsUI

Registre officiel Recherche et web

Search, add, diff and update labsUI React components in your project.

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @kznlabs/labsui
Claude Code
claude mcp add labsui -- npx -y @kznlabs/labsui@0.1.13 mcp
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "labsui": {
            "command": "npx",
            "args": [
                "-y",
                "@kznlabs/labsui@0.1.13",
                "mcp"
            ]
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. labsUI
  2. Why labsUI
  3. Accessibility and browsers
  4. Quick start
  5. What's inside
  6. Development
  7. License

labsUI

Clean, composable React components with one smooth spring for every motion. Hand-made, accessible, and copied into your project so you own the code.

Docs and live demos · npm · JSR · [MCP registry][mcp-registry] · [Glama][glama]

[![Chromium][chromium]](#accessibility-and-browsers) [![Firefox][firefox]](#accessibility-and-browsers) [![WebKit][webkit]](#accessibility-and-browsers) [![WCAG 2.2 AA][wcag]](#accessibility-and-browsers) [![MCP server score on Glama][glama-score]][glama]

Why labsUI

  • One spring. Every animation shares { type: "spring", stiffness: 400, damping: 30 }, so the whole UI moves the same way. Reduced motion is respected everywhere.
  • You own the code. npx @kznlabs/labsui add writes plain TSX into your repo. No runtime package to upgrade around, edit anything.
  • Accessible by default. WAI-ARIA patterns, full keyboard support, and WCAG AA contrast in light and dark mode for all eight accent colors.
  • Server-friendly. Many components are server-safe, and form controls use native validation, so forms work without JavaScript and with Server Actions.
  • 80+ components and blocks. Inputs, overlays, navigation, data display, charts, motion helpers, and ready-made blocks like pricing, site header and changelog.

Accessibility and browsers

CI runs an automated sweep on pull requests (the pages a change reaches) and daily (everything): all component pages, light and dark, at 390 px and 1280 px, in three browser engines. The badges show the latest full run on main.

CheckRequired
WCAG 2.2 A + AA rules (axe)0 violations
JavaScript errorsnone
Sideways page overflownone
Every control reachable by a clickpass
Scroll containers move under the wheelpass
Menus, popovers, tabs, sliders, Escape, focuspass
Pointer targets24 × 24 px or larger
Text contrast, both themes4.5:1 or higher
EngineCoversStatus
ChromiumChrome, Edge, Brave, Opera, Opera GX![Chromium][chromium]
GeckoFirefox![Firefox][firefox]
WebKitSafari (macOS); iOS shares the engine![WebKit][webkit]

[chromium]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fkznlabs%2FlabsUI%2Fbadges%2Fchromium.json [firefox]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fkznlabs%2FlabsUI%2Fbadges%2Ffirefox.json [webkit]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fkznlabs%2FlabsUI%2Fbadges%2Fwebkit.json [wcag]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fkznlabs%2FlabsUI%2Fbadges%2Fwcag.json [mcp-registry]: https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.kznlabs/labsui [glama]: https://glama.ai/mcp/servers/kznlabs/labsUI [glama-score]: https://glama.ai/mcp/servers/kznlabs/labsUI/badges/score.svg

Minimum versions come from Tailwind CSS v4: Chrome 111, Safari 16.4, Firefox 128. Two features enhance where supported and fall back cleanly: styled select popups (appearance: base-select, Chromium and newer Safari; elsewhere the native list) and auto-growing textareas (field-sizing; a resize handle in Firefox).

Automated checks find many problems, not all: axe covers roughly half of the WCAG criteria, so this is not a full conformance audit. Not yet covered: screen reader passes, real phones (iOS Safari, Android Chrome), Samsung Internet and other less common browsers.

Quick start

Requires React 19, Tailwind CSS v4 and a @/* path alias in tsconfig.json. The CLI runs on Node.js 22 or newer, or Deno.

npx @kznlabs/labsui init               # styles, theme, utils, motion provider
npx @kznlabs/labsui add button dialog  # components plus everything they import
npx @kznlabs/labsui search date range  # find by name, export or intent
npx @kznlabs/labsui view dialog        # exact props, examples, what it installs
npx @kznlabs/labsui doctor             # check the setup, with a fix for each problem

Any package manager works: bunx, pnpm dlx, yarn dlx and deno run -A jsr:@kznlabs/labsui too, and npm packages install with whichever one your lockfile shows. Bun is recommended: labsUI is built with it. See the CLI reference for every option.

Coding agents get the same through npx @kznlabs/labsui mcp, an MCP server with search, view, add, init, diff, update and doctor tools plus the library's coding rules, or through --json on any command. It's listed in the [MCP registry][mcp-registry] as io.github.kznlabs/labsui and on [Glama][glama]:

{
    "mcpServers": {
        "labsui": { "command": "npx", "args": ["-y", "@kznlabs/labsui", "mcp"] }
    }
}

Agents that share no workspace, such as Claude Desktop, also need "--cwd", "/path/to/app" after "mcp" (setup).

import { Button } from "@/components/ui/button";

export function DeleteButton({ onDelete }: { onDelete: () => void }) {
    return (
        <Button variant="destructive" confirmLabel="Yes, delete" onClick={onDelete}>
            Delete
        </Button>
    );
}

What's inside

GroupExamples
Actions & inputsButton, Field, Select, Combobox, Date picker, Slider, OTP, Tag input
Overlays & feedbackDialog, Drawer, Popover, Dropdown and context menus, Command palette, Toast
NavigationTabs, Sidebar, Menubar, Navigation menu, Breadcrumb, Pagination
Data displayTable, Data table, Chart, Carousel, Timeline, Code, Terminal
LayoutCard, Accordion, App window, Resizable panels, Scroll area
MotionReveal, Count to, Typewriter, Text swap, Custom cursor
BlocksPricing, Site header, Stats strip, Product card, Changelog, Newsletter

Theming is built on OKLCH tokens with light and dark mode and eight accent presets, or your own hue through --accent-hue.

Development

labsUI is built with Bun, and the repo scripts run on it, so install Bun to work on the library itself.

bun install
bun dev                     # docs site with every component
bun run lint                # Biome
bun run typecheck           # also rebuilds the registry and API docs
bun run check-dead-code     # Knip
bun test                    # unit tests for helpers and the CLI
bunx markdownlint-cli2      # Markdown

The docs site deploys from main to GitHub Pages. A cli-v<version> tag publishes the CLI to npm and JSR.

License

MIT

Questions fréquentes

Qu'est-ce que labsUI ?

Search, add, diff and update labsUI React components in your project.

Comment installer labsUI ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add labsui -- npx -y @kznlabs/labsui@0.1.13 mcp. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour labsUI ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

labsUI est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient labsUI ?

Il est publié par kznlabs. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.