# Headless UI

[BASE product page](<https://base.akulich.dev/en/library/headless-ui/>) · [Resource](<https://headlessui.com>)

ID: headless\-ui · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Unstyled accessible React and Vue components for menus, dialogs, and forms in your own design system\.

## Type

UI library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/headless-ui/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/headless-ui/#resource-access>)

Headless UI code is available free of charge for local and commercial projects, subject to its license\.

## [Paid features and costs](<https://base.akulich.dev/en/library/headless-ui/#resource-access>)

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](<https://base.akulich.dev/en/library/headless-ui/#resource-access>)

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](<https://base.akulich.dev/en/library/headless-ui/#resource-tasks>)

- Accessible components without a predefined visual style
- Custom menus, dialogs, and switches

## Category IDs

- frontend

## Subcategory IDs

- frontend\.components

## Tags

- React/Vue
- Tailwind CSS
- components

## Also known as

- tailwindlabs/headlessui

## [Selection purpose](<https://base.akulich.dev/en/library/headless-ui/#resource-selection>)

Accessible components without a predefined visual style

## [Choose this when](<https://base.akulich.dev/en/library/headless-ui/#resource-selection>)

- Accessible components without a predefined visual style
- Custom menus, dialogs, and switches

## [Consider alternatives when](<https://base.akulich.dev/en/library/headless-ui/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/headless-ui/#resource-selection>)

- React Dialog requires controlled open state and an onClose callback; the application supplies visual styling\.

## [Limitations](<https://base.akulich.dev/en/library/headless-ui/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/headless-ui/#resource-faq>)

### 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 resources selected by editors

- 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: 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\.

## Sources for the selection guide

- [https://headlessui\.com](<https://headlessui.com>)
- [https://github\.com/tailwindlabs/headlessui](<https://github.com/tailwindlabs/headlessui>)
- [https://github\.com/tailwindlabs/headlessui/blob/main/README\.md](<https://github.com/tailwindlabs/headlessui/blob/main/README.md>)
- [https://github\.com/tailwindlabs/headlessui/blob/main/LICENSE](<https://github.com/tailwindlabs/headlessui/blob/main/LICENSE>)
- [https://raw\.githubusercontent\.com/tailwindlabs/headlessui/main/README\.md](<https://raw.githubusercontent.com/tailwindlabs/headlessui/main/README.md>)
- [https://raw\.githubusercontent\.com/tailwindlabs/headlessui/main/LICENSE](<https://raw.githubusercontent.com/tailwindlabs/headlessui/main/LICENSE>)
- [https://headlessui\.com/react/dialog](<https://headlessui.com/react/dialog>)

## [Possible workflow](<https://base.akulich.dev/en/library/headless-ui/#resource-scenario>)

Accessible components without a predefined visual style with Headless UI\.

A possible workflow; this is not a report of hands-on testing.

## 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

1. Check the project's stack and version against the current Headless UI documentation; add the package or the required source component\.
2. Implement the selected workflow with the supplied data, adapting styles and states to the project\.
3. 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\.

## [License](<https://base.akulich.dev/en/library/headless-ui/#resource-license>)

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained\.

## License explanations for the specified scope

### 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 terms](<https://opensource.org/license/mit>)

## Related resource IDs

- shadcn\-ui
- radix\-ui
- ark\-ui
- react\-aria

## [Sources](<https://base.akulich.dev/en/library/headless-ui/#resource-sources>)

- [Official website](<https://headlessui.com>)
- [Source code](<https://github.com/tailwindlabs/headlessui>)
- [Documentation and use](<https://github.com/tailwindlabs/headlessui/blob/main/README.md>)
- [License](<https://github.com/tailwindlabs/headlessui/blob/main/LICENSE>)
- [Official source](<https://raw.githubusercontent.com/tailwindlabs/headlessui/main/README.md>)
- [Official source](<https://raw.githubusercontent.com/tailwindlabs/headlessui/main/LICENSE>)
- [Official source](<https://headlessui.com/react/dialog>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, published primary source code/documentation, and license terms were reviewed\. An example was not run in a local project\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
