More Premium Hugo Themes Premium Nuxt Themes

Nuxt Headlessui

Headless UI integration for Nuxt. Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.

Nuxt Headlessui

Headless UI integration for Nuxt. Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.

Author Avatar Theme by p4sca1
Github Stars Github Stars: 186
Last Commit Last Commit: Nov 24, 2025 -
First Commit Created: Dec 18, 2023 -
Nuxt Headlessui screenshot

Overview:

The Nuxt Headless UI CircleCI is an integration for Nuxt that provides a set of UI components designed to work seamlessly with Tailwind CSS. These components are fully accessible and unstyled, allowing developers to customize them according to their preferred CSS framework. With automatic dynamic imports and full type safety, this integration simplifies the process of creating beautiful, functional UI elements for Nuxt projects.

Features:

  • Automatic dynamic imports for efficient loading of components.
  • Fully type safe implementation to ensure code reliability.
  • Configurable component prefix for easy customization.
  • Integration with Tailwind CSS for seamless styling.
  • Headless components designed to be accessible and unstyled.
  • Support for heroicons for enhanced visual appeal.

Installation:

To install the Nuxt Headless UI CircleCI integration, follow these steps:

  1. Add the nuxt-headlessui dependency to your project by running the following command:
yarn add --dev nuxt-headlessui

or

npm install --save-dev nuxt-headlessui
  1. Add nuxt-headlessui to the modules section of your nuxt.config.ts file.

Usage:

After completing the setup process, you can start using the headless components provided by the integration in your components and pages. These components do not need to be imported explicitly.

Here is an example of using the Listbox (Select) component with heroicons and Tailwind CSS:

<Listbox>
  <ListboxButton>Options</ListboxButton>
  <ListboxOptions>
    <ListboxOption>Option 1</ListboxOption>
    <ListboxOption>Option 2</ListboxOption>
    <ListboxOption>Option 3</ListboxOption>
  </ListboxOptions>
</Listbox>

If you are using Tailwind CSS, you can also take advantage of the @headlessui/tailwindcss plugin to add modifiers like ui-open:\* and ui-active:\* for enhanced styling.

Note: Some headless components, such as Portal, Popover, or Dialog, are client-only components and may cause errors when rendered on the server. To avoid these errors, make sure to wrap them with the ClientOnly component.

For more information and examples, refer to the Headless UI documentation for Vue.

Summary:

The Nuxt Headless UI CircleCI integration provides developers with an easy-to-use set of UI components designed to seamlessly integrate with Tailwind CSS. With automatic dynamic imports, type safety, and support for heroicons, this integration simplifies the process of creating accessible and customizable UI elements for Nuxt projects. By combining the power of Nuxt, Tailwind CSS, and Headless UI, developers can build beautiful and functional interfaces with ease.