{
 "kind": "tool",
 "slug": "headlessui",
 "path": "tools/headlessui/",
 "name": "Headless UI",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "UI components and icons",
   "tools/ui-components/"
  ]
 ],
 "lead": "Unstyled, accessible React components designed to integrate with Tailwind CSS.",
 "chips": [
  {
   "label": "UI components and icons",
   "path": "tools/ui-components/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @headlessui/react"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/tailwindlabs/headlessui"
  },
  {
   "label": "Website",
   "href": "https://github.com/tailwindlabs/headlessui#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/tailwindlabs/headlessui"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Apr 13, 2026",
   "note": "Latest GitHub release Apr 7, 2026. ",
   "src": "https://github.com/tailwindlabs/headlessui"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "85 projects",
   "status": "info",
   "sub": "#15 of 230 in its category",
   "note": "Dependency in 85 public GitHub projects set up for AI coding agents that we scanned (1.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "6 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Headless UI does",
   "parts": [
    {
     "t": "prose",
     "text": "Unstyled, accessible React components designed to integrate with Tailwind CSS."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Headless UI popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "74",
       "of": "/ 100",
       "l": "Gid Score, #238 overall"
      },
      {
       "n": "10.4M",
       "l": "downloads a week, npm"
      },
      {
       "n": "28.8K",
       "l": "GitHub stars"
      },
      {
       "n": "85",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Headless UI is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Headless UI is a dependency in 85 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.7% of the 4,867 JavaScript/TypeScript ones), #15 of 230 in ui components and icons.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 296; those are left out of every share on this page.",
      "The most used alternative in our scan is Radix UI (814 projects).",
      "Projects that use it most often also use Tailwind CSS (98.8%), Lucide React (74.1%), Tailwind Merge (71.8%).",
      "It is more common in projects set up for Junie (9.5%) than for GitHub Copilot (1.2%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "53 projects, 2.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "43 projects, 1.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "36 projects, 1.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "12 projects, 2.5%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "10 projects, 2.9%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "7 projects, 9.5%",
       "v": "Junie",
       "path": "agents/junie/"
      },
      {
       "l": "6 projects, 2.2%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 98.8% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 74.1% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 71.8% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 92.9% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 70.6% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 63.5% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 61.2% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 61.2% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Headless UI",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Own page: https://tailwindcss.com/sponsor"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "react-modernization: Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features. Use when modernizing R",
        "react-native-dev: React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performan",
        "react-expert: Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components,",
        "react-vite-dashboard: Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready pattern",
        "react-composition-patterns: React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component librarie",
        "react-hook-form: React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscrib"
       ]
      },
      {
       "title": "More in UI components and icons",
       "path": "tools/ui-components/",
       "items": [
        {
         "text": "Lucide React",
         "path": "tools/lucide-react/"
        },
        {
         "text": "Class Variance Authority",
         "path": "tools/class-variance-authority/"
        },
        {
         "text": "Sonner",
         "path": "tools/sonner/"
        },
        {
         "text": "cmdk",
         "path": "tools/cmdk/"
        },
        {
         "text": "React Day Picker",
         "path": "tools/react-day-picker/"
        },
        {
         "text": "Vaul",
         "path": "tools/vaul/"
        },
        {
         "text": "react-resizable-panels",
         "path": "tools/react-resizable-panels/"
        },
        {
         "text": "shadcn/ui",
         "path": "tools/shadcn/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Headless UI",
       "me": true,
       "facts": [
        "MIT",
        "Gid 74",
        "10.4M/wk"
       ]
      },
      {
       "name": "Radix UI",
       "why": "Unstyled, accessible component primitives for building design systems.",
       "path": "tools/radix-ui/",
       "facts": [
        "MIT",
        "Gid 85",
        "241M/wk"
       ]
      }
     ],
     "more": "Compare Headless UI with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @headlessui/react"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Headless UI yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @headlessui/react"
  ],
  [
   "Category",
   "UI components and icons"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "73.9"
  ],
  [
   "Rank in category",
   "#15 of 230"
  ],
  [
   "GitHub",
   "tailwindlabs/headlessui"
  ],
  [
   "Last change",
   "Apr 13, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/tailwindlabs.png"
}