Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HeadlessUI components for Svelte

License

NotificationsYou must be signed in to change notification settings

CaptainCodeman/svelte-headlessui

Repository files navigation

minifiedminified + zipped

Svelte-HeadlessUI

Svelte Headless-UI

svelte-headlessui is an unofficial implementation ofTailwind HeadlessUI forSvelte. Just like the official implementation, they are:

  • ✅ Completely unstyled
  • ✅ Fully WIA-ARIA accessible UI components
  • ✅ Fully typed with Typescript
  • ✅ Designed to integrate beautifully with Tailwind CSS

But also:

  • ✅ Designed to integrate beautifully with Svelte and SvelteKit
  • ✅ Less than 14kB minified / 4kB minified gzipped

BREAKING CHANGE (v0.0.39)

The 0.0.39 release switched to using "change" instead of "select" as the event fired when the selected item changes for semantic correctness and to better match native inputs. Be sure to change listeners fromonselect toonchange!

Installation

Install using your package manager of choice, e.g.

pnpm install svelte-headlessui

Import the appropriatecreate... factory method in your component and use the custom store it returns to manage your component state and attachuse:action behaviors to your elements.

See the individual component pages for usage examples.

Alternative

You may be interested in evaluating@rgossiaux/svelte-headlessui. This package aligns closer to the official components in it's approach although I believe that approach (driven by React / Vue) contributes to thelarger size of 173kB minified / 29kB minified + gzipped.

Logo

Special thanks toShoob for the awesome logo!


[8]ページ先頭

©2009-2025 Movatter.jp