Headless UI
Completely unstyled, fully accessible UI components by Tailwind Labs, designed to integrate seamlessly with Tailwind CSS.

Overview
Headless UI is the official unstyled UI component library created by Tailwind Labs (the creators of Tailwind CSS). Available for both React and Vue, it provides completely unstyled, accessible components designed to be styled with Tailwind classes.
Key Features
- Tailwind Labs Official: Designed specifically to work harmoniously with Tailwind CSS utility classes and
data-*variants. - React & Vue Support: Identical component logic available across both React and Vue 3 ecosystems.
- Full Keyboard Navigation: Automatic focus management, tab trapping, and ARIA attributes.
- Zero Styling Opinions: Complete freedom to apply any CSS classes without fighting default component styles.
Installation & Quick Start
npm install @headlessui/reactimport { Menu, MenuButton, MenuItems, MenuItem } from '@headlessui/react';
export default function App() {
return (
<Menu>
<MenuButton className="bg-primary text-white px-3 py-1.5 rounded-lg">Options</MenuButton>
<MenuItems className="bg-card border rounded-lg p-1">
<MenuItem>
<button className="data-[focus]:bg-muted p-2 rounded w-full text-left">Settings</button>
</MenuItem>
</MenuItems>
</Menu>
);
}Why Choose Headless UI?
- Best for: React and Vue projects built with Tailwind CSS needing accessible dropdowns, dialogs, and popovers.
- Not suitable for: Teams who do not use Tailwind CSS.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stackKinetics (Colorion)
A library of 150+ spring-driven micro-interactions for web apps. Copy the CSS, React, or ready-made AI prompts to ship physics-based motion instantly.
Ambient CSS
A physics-based lighting system for CSS calibrated against Blender raytraces. Define a light source, and all shadows, highlights, and gradients follow deterministically.
8bitcn/ui
Accessible retro 8-bit components and blocks built on shadcn/ui and Tailwind CSS. Open source, copy-paste, and crafted for modern React apps.