Svelte Headlessui screenshot

Svelte Headlessui

Author Avatar Theme by Captaincodeman
Updated: 26 Jan 2025
589 Stars

HeadlessUI components for Svelte

Categories

Overview:

Svelte-headlessui is an unofficial implementation of Tailwind HeadlessUI for Svelte. It offers completely unstyled UI components that are fully WIA-ARIA accessible and fully typed with Typescript. These components are designed to integrate seamlessly with Tailwind CSS, as well as with Svelte and SvelteKit. The package is lightweight, with a size of less than 14kB when minified and 4kB when minified and gzipped. It also includes a logo, designed by Shoob.

Features:

  • Completely unstyled UI components
  • Fully WIA-ARIA accessible
  • Fully typed with Typescript
  • Designed to integrate beautifully with Tailwind CSS
  • Designed to integrate beautifully with Svelte and SvelteKit
  • Lightweight: less than 14kB minified / 4kB minified gzipped

Installation:

  1. Install the package using your preferred package manager.
  2. Import the appropriate create… factory method in your component.
  3. Use the custom store returned by the factory method to manage your component state.
  4. Attach use:action behaviors to your elements.
  5. Refer to the individual component pages for usage examples.

Summary:

Svelte-headlessui is a lightweight package that provides unstyled UI components for Svelte. It is fully accessible, fully typed with Typescript, and designed to integrate seamlessly with Tailwind CSS, Svelte, and SvelteKit. The package offers a range of features and is easy to install and use. It is a great choice for developers looking to build accessible and customizable UI components in Svelte.