{"schemaVersion":1,"id":"headless-ui","name":"Headless UI","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/headless-ui/","officialUrl":"https://headlessui.com","isCatalog":false,"description":"Unstyled accessible React and Vue components for menus, dialogs, and forms in your own design system.","tasks":["Accessible components without a predefined visual style","Custom menus, dialogs, and switches"],"categoryIds":["frontend"],"subcategoryIds":["frontend.components"],"tags":["React/Vue","Tailwind CSS","components"],"aliases":["tailwindlabs/headlessui"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Headless UI code is available free of charge for local and commercial projects, subject to its license.","paidUsage":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","license":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.","selectionGuide":{"purpose":"Accessible components without a predefined visual style","chooseWhen":["Accessible components without a predefined visual style","Custom menus, dialogs, and switches"],"considerInstead":["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."],"limitations":["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."],"faq":[{"question":"What can you use for free in Headless UI?","answer":"Headless UI code is available free of charge for local and commercial projects, subject to its license."},{"question":"What additional costs might arise with Headless UI?","answer":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license."},{"question":"What terms of use matter for Headless UI?","answer":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained."},{"question":"How do you get started with Headless UI?","answer":"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."},{"question":"Who controls closing a Dialog in Headless UI?","answer":"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":[{"id":"ark-ui","reason":"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."},{"id":"radix-ui","reason":"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."},{"id":"react-aria","reason":"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":["https://headlessui.com","https://github.com/tailwindlabs/headlessui","https://github.com/tailwindlabs/headlessui/blob/main/README.md","https://github.com/tailwindlabs/headlessui/blob/main/LICENSE","https://raw.githubusercontent.com/tailwindlabs/headlessui/main/README.md","https://raw.githubusercontent.com/tailwindlabs/headlessui/main/LICENSE","https://headlessui.com/react/dialog"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Accessible components without a predefined visual style with Headless UI.","inputs":["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."],"checks":["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."]},"sources":["https://headlessui.com","https://github.com/tailwindlabs/headlessui","https://github.com/tailwindlabs/headlessui/blob/main/README.md","https://github.com/tailwindlabs/headlessui/blob/main/LICENSE","https://raw.githubusercontent.com/tailwindlabs/headlessui/main/README.md","https://raw.githubusercontent.com/tailwindlabs/headlessui/main/LICENSE","https://headlessui.com/react/dialog"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":["shadcn-ui","radix-ui","ark-ui","react-aria"],"dataVersion":"cbbe7123b47a5ae80983","type":"UI library","kind":"library","pricingNote":"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.","notes":null,"labeledSources":[{"url":"https://headlessui.com","label":"Official website"},{"url":"https://github.com/tailwindlabs/headlessui","label":"Source code"},{"url":"https://github.com/tailwindlabs/headlessui/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/tailwindlabs/headlessui/blob/main/LICENSE","label":"License"},{"url":"https://raw.githubusercontent.com/tailwindlabs/headlessui/main/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/tailwindlabs/headlessui/main/LICENSE","label":"Official source"},{"url":"https://headlessui.com/react/dialog","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}