Softwr

Web Development · head to head

Base UI vs Stencil

Base UI logo

Base UI

Web Development

Unstyled accessible React primitives built by the teams behind Radix, Material UI and Floating UI

From
Free
Free plan
Yes
Stencil logo

Stencil

Web Development

MIT licensed toolchain for building reusable Web Component libraries in TypeScript

From
Free
Free plan
Yes

The short version

  • Stencil is an open source toolchain.
  • Both are free.
  • Only Base UI lists unstyled primitives; only Stencil lists shadow DOM and slots support.
  • Where Stencil falls short: aimed at component libraries, so routing and data fetching must come from elsewhere.

How do Base UI and Stencil differ?

Base UI and Stencil differ on pricing model and platforms. Only the attributes on which Base UI and Stencil actually diverge.

Attributes where Base UI and Stencil differ
AttributeBase UIStencil
Pricing modelOpen source, no licence feeOpen-source
PlatformsWebWeb, Windows, macOS, Linux

Identical on both: starting price (Free), free tier (Yes), category (Web Development).

Which features does each one have?

They share no listed features; 6 appear only for Base UI and 8 only for Stencil. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Base UI

  • Unstyled primitives
  • Focus and keyboard management
  • ARIA state handling
  • Collision aware positioning
  • Composable parts
  • Server rendering safe

Only in Stencil

  • Compiles TypeScript and JSX to Web Components
  • Shadow DOM and slots support
  • Output optimised for tree shaking and loading
  • Asynchronous rendering pipeline
  • Documentation generated from JSDoc comments
  • Dev server with hot reloading
  • Unit testing and code generation tooling
  • Integration guides for Angular, React and Vue

What is each one used for?

Base UI is most often brought in for building a design system where the visual language must be entirely your own; Stencil for publishing a design system as Web Components. The jobs each tool is most often brought in to do.

Base UI

  • Building a design system where the visual language must be entirely your ownnot Stencil
  • Applications with an accessibility conformance obligation that need correct behaviour as the foundationnot Stencil
  • Replacing a styled component library that is being fought rather than usednot Stencil
  • Teams already writing Tailwind who want behaviour without a second opinion about appearancenot Stencil

Stencil

  • Publishing a design system as Web Componentsnot Base UI
  • Sharing UI components across React, Angular and Vue appsnot Base UI
  • Building framework independent widgetsnot Base UI
  • Generating documentation for component librariesnot Base UI
  • Building progressive web apps with Web Componentsnot Base UI

Where do Base UI and Stencil fall short?

Stencil's most cited limit: aimed at component libraries, so routing and data fetching must come from elsewhere. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Base UI

  • Nothing is styled, so the first weeks produce a functional but unfinished interface, and a team without design capacity will ship something worse looking than a styled library would have given them free
  • The project is young and its APIs have changed between releases, so upgrades need reading rather than accepting, and version pinning is currently a necessity
  • Component coverage is narrower than the mature styled libraries, so date pickers, tables and rich inputs will still come from elsewhere or be built
  • There is no commercial support and no conformance certification to point at, so an organisation that must evidence accessibility still has to commission its own audit
  • Consolidating the Radix and Material UI unstyled efforts here leaves the earlier libraries with an uncertain maintenance future, which is a live risk for the many applications built on Radix through shadcn/ui

Stencil

  • Aimed at component libraries, so routing and data fetching must come from elsewhere
  • Requires TypeScript and decorator conventions that differ from other frameworks
  • Web Component styling and form handling can need extra work in some host frameworks
  • Smaller ecosystem of third party components than the largest frameworks

How much do Base UI and Stencil cost?

Base UI is free to use; Stencil is free to use. Plan by plan below, from each vendor's own pricing page.

Base UI

Free
  • Base UIOn request
    • MIT licensed and free for commercial use
    • No paid tier, no enterprise edition and no support contract available
  • Open sourceFree

Stencil

Free

No published plan breakdown. See the Stencil review.

Which should you pick?

Choose Base UI if

  • You need unstyled primitives.
  • You want to start without paying.
  • You also want focus and keyboard management.

Choose Stencil if

  • You need compiles typescript and jsx to web components.
  • You want to start without paying.
  • You work on Web, Windows, macOS, Linux.
  • You also want shadow dom and slots support.

Questions people ask

Is Base UI or Stencil better?
It depends on the job. Base UI fits building a design system where the visual language must be entirely your own; Stencil fits publishing a design system as Web Components. Base UI starts at Free and Stencil at Free.
Which is cheaper, Base UI or Stencil?
Base UI starts at Free and Stencil at Free.
Does Base UI or Stencil run on more platforms?
Base UI runs on Web. Stencil runs on Web, Windows, macOS, Linux.
Can I use Base UI for free?
Both have a free tier, so you can try either at no cost before committing.
What is Base UI best used for?
Base UI is most often used for building a design system where the visual language must be entirely your own, applications with an accessibility conformance obligation that need correct behaviour as the foundation, replacing a styled component library that is being fought rather than used, teams already writing tailwind who want behaviour without a second opinion about appearance. Of those, building a design system where the visual language must be entirely your own and applications with an accessibility conformance obligation that need correct behaviour as the foundation are not what Stencil is typically brought in for.
What can Base UI do that Stencil cannot?
Base UI covers Unstyled primitives, Focus and keyboard management, ARIA state handling, Collision aware positioning. Stencil covers Compiles TypeScript and JSX to Web Components, Shadow DOM and slots support, Output optimised for tree shaking and loading, Asynchronous rendering pipeline.

Answered from the vendors’ own pages

Base UI: Does this replace Radix UI?

It is where much of the same maintenance attention has moved. If you are on Radix, watch its release activity rather than assuming continuity.

Stencil: What does Stencil produce?

Stencil compiles components written in TypeScript and JSX into standard Web Components. These work in any major framework or without one.

Source
Base UI: What does it affect for shadcn/ui users?

shadcn/ui components are built on Radix primitives, so the health of Radix is your dependency question, not a theoretical one.

Stencil: Is Stencil free?

Yes. The project is released under the MIT licence according to both its website and its GitHub repository.

Source
Base UI: Is it ready for production?

For the components it covers, yes, provided you pin versions and read release notes. The range is narrower than mature libraries, so check coverage against your needs first.

Stencil: Who builds Stencil?

The README says Stencil is built by the Ionic team. The website describes it as an open source project by Ionic.

Source
Stencil: Does Stencil work with React, Angular and Vue?

Yes. Components are plain Web Components, and the website provides integration guides for Angular, React and Vue.

Source
Share

Related pages

Other head to heads