Skip to content

coss ui Grid Notes

Open-source React components built on Base UI (`@base-ui/react`) and Tailwind CSS v4 (formerly Origin UI; `originui.com` redirects here).

Grid NotesVersion registryUI librariesChecked 2026-11-06
Setup & agent config

Install and prerequisites

What your agent should install or configure before writing code with this pack.
Terminal
npx shadcn@latest add @coss/button
Packages:@coss@base-ui/react

React 19 and Tailwind CSS v4. @coss is listed in shadcn's official registry index, so @coss/<name> works without editing components.json.

Framework setup

Production-ready wiring for React 19, Next.js App Router and Tailwind CSS v4.

Adding individual @coss components or the full style

Add components one by one with npx shadcn@latest add @coss/<name>, and use Base UI's render prop when turning buttons or menu items into Next.js <Link>s.

components/nav-action.tsx
import Link from "next/link";
import { Button } from "@/components/ui/button";

export function NavAction() {
  return (
    <Button render={<Link href="/setup" />} variant="outline">
      Build one setup
    </Button>
  );
}

Gotchas for agents

Real-world traps — version mismatches, licence boundaries, main-thread stalls and CSS layer rules — that trip AI agents up.
  1. Origin UI is now coss ui

    originui.com redirects to coss.com/ui. If a prompt or older doc asks for Origin UI, install from @coss/* rather than scraping legacy Origin UI snippets.

  2. Base UI uses `render`, not Radix's `asChild`

    coss ui is built on @base-ui/react, not @radix-ui/*. Passing asChild logs an unknown-prop warning or renders nested interactive tags; pass render={<Link href="..." />} instead.

  3. Base UI tab and menu indicator variables

    Base UI exposes CSS variables (--active-tab-left, --active-tab-width) on <Tabs.Indicator>. Animate the indicator's translate with transform only, and skip the transition on initial mount so the indicator doesn't slide in from 0 on page load.

Accessibility and reduced motion

How to keep animations and interactive components accessible across keyboard, screen readers and prefers-reduced-motion.

Reduced motion

Add motion-reduce:transition-none to sliding <Tabs.Indicator> elements and popover scale transitions.

Keyboard and screen readers

Base UI places the id on a hidden <input> for controls like <Checkbox> and <Switch>. Associate <label htmlFor={id}> normally, and in automated tests query by role (getByRole('checkbox')) rather than #id visibility.