Get Pro

Kobra vs shadcn/ui

Kobra vs shadcn/ui: what a paid library adds to the free one it installs through. Components, primitives, Figma, pricing, and when to use both.

This is the comparison most people searching for Kobra actually mean. shadcn/ui is the free, MIT-licensed library that made "copy the component into your repo" the default way to build React interfaces, and Kobra is installed through its CLI. So the honest question isn't which one replaces the other. It's what a paid library adds on top of a free one, and whether you need it.

shadcn/ui ships 66 entries in its component list, 21 AI Elements patterns for agent interfaces, free blocks and charts, eight visual styles, and a choice of three primitive libraries underneath: Base UI (the default since July 2026), Radix and React Aria. Kobra is 100+ components on Base UI, sold once for $199, with 11 free. Both put plain source files in your repository.

Kobra isn't affiliated with shadcn/ui. It publishes to the shadcn registry format, which is an open specification, and it uses the same CLI and the same file-in-your-repo model.

How Kobra and shadcn/ui compare

What each one is

ConcernKobrashadcn/ui
What it isA component library, bought onceA free code distribution system and the components on it
LicenseCommercial, one-timeMIT, free
Catalog100+ components across 90 names, 11 free66 entries in its component list, plus 21 AI Elements patterns
PrimitivesBase UIBase UI by default, Radix and React Aria as choices
StylesOne system, light and dark, restyled through your tokensEight styles, from Vega to Sera, picked at setup
ExtrasFree Figma kit, MCP server, three agent skills, sound layerFree blocks, charts, MCP server, an agent skill, Typeset
Who owns itOne company, paid to maintain itAn open source project with a very large community

The catalogs overlap more than they used to. shadcn/ui now has a toast, a code block, message and chat components, and a trace view, which are all things Kobra also ships. Where they differ is in what each component is expected to do. shadcn/ui gives you a well-made, deliberately plain starting point that you finish yourself. Kobra hands you the finished version, with the motion, the edge cases and the states already worked out.

How you install it

ConcernKobrashadcn/ui
Commandnpx shadcn@latest add @kobra/toastnpx shadcn@latest add toast
CLIThe shadcn CLIThe shadcn CLI
Paid itemsA registry token in KOBRA_TOKENNothing is paid
Right to leftWritten with logical classes throughoutConverted by the CLI when rtl is set
Where code landsYour repo, yours to editYour repo, yours to edit

This is the row that matters most for anyone already on shadcn/ui. Nothing about your setup changes. Kobra's components install next to the ones you have, from the same components.json, and you can move one screen at a time.

What's underneath

ConcernKobrashadcn/ui
Headless layerBase UIBase UI, Radix or React Aria
Tailwindv4v4
React1919
MotionMotion, with reduced motion respected per componentCSS animation classes from tw-animate-css

Where Kobra goes deeper

Components shadcn/ui doesn't have

A CRM table with sorting and resizable columns, a grouped table that folds as it narrows, a color picker, a logo picker, filter chips, a magnetic dropzone, an image gallery with a lightbox, a QR code, a video player and an input that carries its value away once it's sent. On the agent side, a composer, an agent map, image generation, weather and product cards for generative UI. Each of these is something a team on shadcn/ui ends up building by hand, usually more than once.

The interaction detail

shadcn/ui's components are intentionally a starting point. Kobra's are meant to be the last version. A toast that reads swipe velocity, an OTP input that animates a paste across its slots, a dropzone that changes its prompt as a file approaches, a button that turns its label out and a spinner in while it waits. Every animation has a reduced-motion path, and the whole library is tested against WCAG 2.1 AA in both themes.

An official Figma kit

shadcn/ui's Figma page lists community files, free and paid, made by other people. Kobra publishes its own: 52 primitives on the same tokens as the code, with real variables for color, spacing and radius, free on the Figma Community. When the designer and the engineer are reading the same variables, handoff gets shorter.

Right to left as a property of the source

shadcn/ui converts physical classes to logical ones at install time when you turn RTL on, which keeps the source simple for anyone who never needs it. Kobra writes every component by reading direction from the start, including arrow keys, swipes and sliders, and keeps Arabic and Persian words joined through its text animations. Add ?dir=rtl to any component page to see it mirrored.

Agent tooling about one library

An MCP server, three agent skills (motion, sound and design system migration), a prompt with every component and a single install guide written for coding agents. shadcn/ui has an MCP server and a skill too. The difference is that Kobra's are about a smaller set of finished components, so an agent has less to choose between and less to get wrong.

Where shadcn/ui goes deeper

It's free, and MIT

This is the biggest difference and it isn't close. shadcn/ui costs nothing, the license is MIT, and the source is on GitHub with more than 120,000 stars. Kobra's paid components are a commercial license. If budget is the constraint, shadcn/ui wins before anything else on this page gets read.

A choice of primitives

shadcn/ui ships every component for Base UI, Radix and React Aria, and lets you pick at setup. If your codebase is already on Radix, or your team prefers React Aria's accessibility model, shadcn/ui meets you there. Kobra is Base UI only.

Eight styles and presets

Vega, Nova, Maia, Lyra, Mira, Luma, Rhea and Sera, plus presets you can apply to an existing project. Kobra has one look, which you restyle by editing tokens. If you want a different starting aesthetic without writing it, shadcn/ui has more of them.

Blocks, charts and AI Elements

Free page-level blocks for dashboards, sign-in and sidebars, a chart collection, and 21 AI Elements patterns for agentic interfaces, from chain of thought to test results. Kobra's agent section is smaller and its chart is one component rather than a gallery.

The ecosystem

Every tutorial, every Stack Overflow answer, every AI model's training data and a registry directory full of third-party libraries assume shadcn/ui. Kobra benefits from that because it's built on the same conventions, but shadcn/ui is the thing the conventions are about.

What they cost

Kobrashadcn/ui
Individual$199 one-time, 1 seatFree
Team$150 per seat, from 2 seatsFree
Smallest unit$19 for one component, credited toward the libraryFree
Free11 components with full source, plus the whole Figma kitEverything
Commercial useIncludedIncluded, under MIT
UpdatesLifetimeOngoing, open source

The real comparison is $199 against the time it takes to build the components shadcn/ui leaves to you, and to finish the ones it gives you a start on. For a single toast or table, that can be an afternoon. Across an application, it's usually weeks.

Kobra's prices read from the vendor's own pricing page on 30 October 2026. shadcn/ui charges nothing and has no pricing page.

Should you use both?

Almost everyone who buys Kobra does. It isn't a replacement for shadcn/ui so much as a second registry in the same components.json. Keep shadcn/ui's primitives where they're good enough, install Kobra's where you need more, and let both read the same Tailwind tokens.

Two things to watch. Where both ship a component with the same name, such as Toast or Button, pick one and delete the other rather than shipping two. And if your shadcn/ui project is on Radix, Kobra's components bring Base UI alongside it, which works but means two headless libraries in the bundle until you finish moving over.

When to choose Kobra or shadcn/ui

If your project looks like…ChooseWhy
There's no budget for componentsshadcn/uiFree and MIT
You're on Radix or React Aria and want to stay thereshadcn/uiEvery component ships for all three primitive libraries
You want a different look without writing itshadcn/uiEight styles and presets
You need tables, pickers and dropzones that are doneKobraComponents shadcn/ui leaves to you, already finished
Motion and interaction polish matter to the productKobraTuned motion, reduced-motion paths and states worked out
Designers work in Figma before you buildKobraAn official, free kit on the same tokens
Your product ships in Arabic, Hebrew or PersianKobraWritten by reading direction, not converted at install
You already use shadcn/ui and want moreBothSame CLI, same repo, one screen at a time

shadcn/ui is the foundation and Kobra is built on it, so the choice is rarely either one. Start with shadcn/ui, and pay for Kobra when the components you need are the ones shadcn/ui leaves you to finish.

Figures for shadcn/ui were read from their own site on October 30, 2026 and may have changed since. Kobra is not affiliated with shadcn/ui, and every product named here belongs to its owner.