primitives VS headlessui

Compare primitives vs headlessui and see what are their differences.

primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos. (by radix-ui)

headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS. (by tailwindlabs)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
primitives headlessui
26 180
14,192 24,217
2.3% 1.0%
8.0 9.1
12 days ago 5 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

primitives

Posts with mentions or reviews of primitives. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-22.
  • Radix Primitives: an open-source UI component library
    1 project | news.ycombinator.com | 20 Mar 2024
  • React: Build your own composable, headless components
    3 projects | dev.to | 22 Jan 2024
    Fast forward to a week ago, I cloned the Reach UI and Radix UI codebase and started exploring. Large codebases are always difficult to comprehend. With some digging around and reverse engineering, I was able to create the first component listed in the Reach UI docs, the Accordion.
  • Show HN: Radix Themes – A beautiful, open-source React component library
    1 project | news.ycombinator.com | 8 Aug 2023
    Hi HN! I'm Vlad, a designer and engineer on the Radix team (https://radix-ui.com). We just launched Radix Themes, an open source component library for building modern, accessible React apps.

    Radix Themes is built on top of Radix Primitives (https://radix-ui.com/primitives), which companies like Vercel, CodeSandbox, and Supabase, among others, already use to power their interfaces.

    Our goal is to help you focus on your product and build it faster instead of re-inventing common designs and working on the UI components over and over.

    Under the hood, Radix Themes is built with TypeScript, React and vanilla CSS. All design tokens are CSS variables that you can tweak, overwrite, or use to build your own custom components with any styling solution that you like.

    The idea to build Radix Themes emerged while working on our own design system at WorkOS (https://workos.com), which is the company behind Radix. There was hundreds of design details and edge cases that we had to take care of, so it still didn't feel like a solved problem.

    We also were obsessed with getting the developer experience right. For every component we asked ourselves—what is the right API? What are the right props and parts? What should, and more importantly, shouldn’t be a part of this component? What API would make the code easy to understand and maintain, and what would put you into a messy situation that could bite when you don’t expect it?

    With this approach, we used our own, battle-tested components that serve our paying users to kickstart Radix Themes.

    I hope that you find Radix Themes useful. Right now, there’s 45 components, hundreds of carefully crafted variants, a few simple and powerful primitives for layout, and an extensive token system.

    I would love to hear your feedback on our work and learn about your experiences with building UIs.

  • 5 React Libraries to Level Up your Projects in 2023
    8 projects | dev.to | 19 Jun 2023
  • I'm building Radix Svelte, an unstyled UI component library with a focus on accessibility.
    1 project | /r/sveltejs | 24 Apr 2023
    Other things that led me to choose this path were: Most libraries that are ports, official or not, use the original name (e.g. Svelte Material UI); Radix UI's license is fairly permissive (https://github.com/radix-ui/primitives/blob/main/LICENSE), which is why I also don't think it matters that it's a company behind it. Same as why I don't see an issue with the name Preact, for example.
  • I made a tool for converting between different media formats (without uploading to a server)
    3 projects | /r/webdev | 22 Apr 2023
    For a react project I recommend https://radix-ui.com, it's got pretty good defaults
  • List of free Tailwind UI component resources
    12 projects | /r/tailwindcss | 7 Apr 2023
    radix-ui.com
  • useControlledProps: Make any React Component Controlled/Uncontrolled
    1 project | /r/reactjs | 23 Mar 2023
    This is really cool, Radix UI uses a similar hook internally for their components. I like your implementation though.
  • Is form handling always a pain in the ass in React?
    1 project | /r/reactjs | 26 Feb 2023
    Remix is a dream. Once combined with Radix Form Component it'll be freaking heaven. https://github.com/radix-ui/primitives/blob/form-rfc/rfcs/2023-radix-form-primitive.md
  • Please give feedback on my personal company website
    1 project | /r/Frontend | 3 Feb 2023
    Looks like radix-ui.com, but a bit more boring tbh

headlessui

Posts with mentions or reviews of headlessui. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-27.
  • Exploring Catalyst, Tailwind's UI kit for React
    3 projects | dev.to | 27 Mar 2024
    Catalyst is a comprehensive, fully componentized UI kit for modern React projects, built on the next generation of Headless UI. With Catalyst, you can create a custom set of components to use and reuse in your projects.
  • Headless UI - a great components library for Vue & React
    1 project | dev.to | 25 Mar 2024
    And that is why I was looking for a UI library that would deliver these things for a long time and today I am happy to announce that I have found it! It is Headless UI by the Tailwind Team.
  • The Secret Weapon of Top Developers: 7 React JS Libraries You Can't Afford to Ignore
    5 projects | dev.to | 21 Feb 2024
    Headless UI provides a suite of unstyled, fully accessible UI components perfect for developers who want full control over their interface design. It's a developer's canvas, offering the foundational parts needed to build a user interface without dictating the aesthetics, making it ideal for those who love to integrate with Tailwind CSS. With https://headlessui.com/, you can ensure that your applications are inclusive and easy to use for everyone, while also maintaining the freedom to craft a unique look and feel that aligns with your brand or style guidelines.
  • Tailwind Color Palette Generator
    13 projects | news.ycombinator.com | 2 Feb 2024
  • 9 React component libraries for efficient development in 2023
    9 projects | dev.to | 13 Nov 2023
    GitHub stars: 22.5k GitHub link: https://github.com/tailwindlabs/headlessui Documentation: https://headlessui.com/
  • React Ecosystem in 2024
    22 projects | dev.to | 16 Oct 2023
    Website: Headless UI
  • Build E-Commerce apps faster with Storefront UI
    1 project | dev.to | 16 Oct 2023
    Few months ago, I discovered project called Headless UI and I instantly liked the idea.
  • Top 5 Headless Components For Your React Application In 2023
    8 projects | dev.to | 14 Oct 2023
    In addition to Tailwind CSS, Tailwind Labs also created Headless UI, a collection of components that work well with Tailwind CSS.
  • Accessibility and Headless UI Libraries - Adobe, Radix, Tailwind, MUI
    6 projects | dev.to | 24 Sep 2023
    Tailwind - Headless UI
  • Nue: A React/Vue/Vite/Astro Alternative
    13 projects | news.ycombinator.com | 14 Sep 2023
    Thanks for sharing! I love projects that reimagine entire ecosystems: there's a lot of value in imagining what could be if we didn't worry about what is.

    Some feedback: your comparison of the various ListBox implementations[0] feels disingenuous. I know Vue best, so I looked at that implementation in detail, and it's got a lot going on that you don't attempt to replicate in your version. A few key features that are missing:

    * Search—in the HeadlessUI version there are several hundred lines dedicated to making typing work for jumping to specific list items.

    * Multiselect—HeadlessUI supports multiple selections, yours does not appear to. Again, this occupies a lot of lines.

    * Focus management—HeadlessUI has a lot of code dedicated to smoothing out the focus management. In my testing, your implementation has pretty buggy support for using tab to navigate.

    * The HeadlessUI version dedicates a lot of lines to types, where your Nue implementation is dynamically typed. This may be a feature for you, but in my mind those type declarations are doing important work.

    * In general, the HeadlessUI implementation tries to be flexible for many use cases [2], while yours only needs to support the one demo list.

    You also include this render.ts file [1] from HeadlessUI, which is more part of a bespoke sub-framework used by HeadlessUI than it is a necessary part of any old Vue ListBox implementation. If you're going to count that against Vue, then there are parts of Nue JS that should be included as well.

    These kinds of comparisons are most persuasive if you can write all the implementations from the ground up, using idiomatic patterns for each framework and identical feature sets for each implementation. When you do that, it's easy to compare and contrast the frameworks. As it is, it's like comparing a house to a garden shed: yes, you've used fewer lines of code, but it's not obvious to me that that's a feature of Nue and not just a byproduct of a less ambitious component.

    [0] https://nuejs.org/compare/component.html

    [1] https://github.com/tailwindlabs/headlessui/blob/%40headlessu...

    [2] https://headlessui.com/vue/listbox#component-apihttps://head...

What are some alternatives?

When comparing primitives and headlessui you can also consider the following projects:

shadcn/ui - Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

daisyui - 🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library

zag - Finite state machines for building accessible design systems and UI components.

flowbite - Open-source UI component library and front-end development framework based on Tailwind CSS

chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications

sveltekit-package-template - A barebones project that provides the essentials for writing highly-optimized, reusable packages in Svelte.

downshift 🏎 - 🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.

shoelace-css - A collection of professionally designed, every day UI components built on Web standards. SHOELACE IS BECOMING WEB AWESOME. WE ARE LIVE ON KICKSTARTER! 👇👇👇

Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.

component-template - A base for building shareable Svelte components