Gathering detailed insights and metrics for @headlessui/tailwindcss
Gathering detailed insights and metrics for @headlessui/tailwindcss
Gathering detailed insights and metrics for @headlessui/tailwindcss
Gathering detailed insights and metrics for @headlessui/tailwindcss
svelte-headlessui
HeadlessUI components for Svelte
svelte-headlessui-starter
Launch your next Svelte app using Headless UI.
vueless
Vue Styleless UI Component Library, powered by Tailwind CSS.
create-tailwind-react
A utility for createing a react typescript tailwind project with scss support
Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
npm install @headlessui/tailwindcss
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@headlessui/react@v2.2.4
Updated on May 20, 2025
@headlessui/react@v2.2.3
Updated on May 12, 2025
@headlessui/react@v2.2.2
Updated on Apr 17, 2025
@headlessui/react@v2.2.1
Updated on Apr 04, 2025
@headlessui/tailwindcss@v0.2.2
Updated on Feb 06, 2025
@headlessui/react@v2.2.0
Updated on Oct 25, 2024
TypeScript (95.28%)
Vue (4.28%)
JavaScript (0.27%)
Shell (0.12%)
CSS (0.04%)
HTML (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
27,627 Stars
901 Commits
1,154 Forks
165 Watchers
21 Branches
97 Contributors
Updated on Jul 14, 2025
Latest Version
0.2.2
Package Id
@headlessui/tailwindcss@0.2.2
Unpacked Size
10.48 kB
Size
3.91 kB
File Count
10
NPM Version
10.8.2
Node Version
18.20.6
Published on
Feb 06, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
A complementary Tailwind CSS plugin for Headless UI
1npm install @headlessui/tailwindcss
1// tailwind.config.js 2module.exports = { 3 content: [], 4 theme: { 5 extend: {}, 6 }, 7 plugins: [ 8 require('@headlessui/tailwindcss') 9 10 // Or with a custom prefix: 11 require('@headlessui/tailwindcss')({ prefix: 'ui' }) 12 ], 13}
Use Tailwind CSS utilities for styling the components based on their state. You can use the following variants:
Variant | Inverse variant |
---|---|
ui-open | ui-not-open |
ui-checked | ui-not-checked |
ui-selected | ui-not-selected |
ui-active | ui-not-active |
ui-disabled | ui-not-disabled |
ui-focus-visible | ui-not-focus-visible |
Example:
1import { Menu } from '@headlessui/react' 2 3function MyDropdown() { 4 return ( 5 <Menu> 6 <Menu.Button>More</Menu.Button> 7 <Menu.Items> 8 <Menu.Item> 9 <a 10 className="ui-active:bg-blue-500 ui-active:text-white ui-not-active:bg-white ui-not-active:text-black" 11 href="/account-settings" 12 > 13 Account settings 14 </a> 15 </Menu.Item> 16 {/* ... */} 17 </Menu.Items> 18 </Menu> 19 ) 20}
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using the library:
No vulnerabilities found.
Reason
25 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 10/30 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More