Headless UI
UI library · Free
Unstyled accessible React and Vue components for menus, dialogs, and forms in your own design system.
Also known as: tailwindlabs/headlessui

What you can use for free
Headless UI code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
Headless UI code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- Accessible components without a predefined visual style
- Custom menus, dialogs, and switches
Example workflow
A possible workflow; this is not a report of hands-on testing.
Accessible components without a predefined visual style with Headless UI.
Before you start
- A working React/Vue; Tailwind CSS project and a specific use case: accessible components without a predefined visual style.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current Headless UI documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing Headless UI
Accessible components without a predefined visual style
Choose this when
- Accessible components without a predefined visual style
- Custom menus, dialogs, and switches
Consider alternatives when
- When choosing for this topic, compare Headless UI with Ark UI. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare Headless UI with Radix UI Primitives. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- React Dialog requires controlled open state and an onClose callback; the application supplies visual styling.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- The Insiders build does not follow semver or promise API stability. Accessibility primitives do not automatically confirm accessibility of the entire application.
Frequently asked questions
What can you use for free in Headless UI?
Headless UI code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with Headless UI?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for Headless UI?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with Headless UI?
Check the project's stack and version against the current Headless UI documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
Who controls closing a Dialog in Headless UI?
React Dialog is a controlled component: the application supplies open and onClose; Escape or clicking outside invokes the callback. DialogTitle/Description link the name and description, focus stays inside, and external elements become inert. Styling and scroll layout are defined through CSS; the backdrop is best placed as a panel sibling.
Related tasks and approaches
- Ark UI
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Radix UI Primitives
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- React Aria
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- React/Vue
- Tailwind CSS
- components