A set of headless, accessible component builders for Svelte
open sourceMITself-hostablefree
Melt UI is a library of headless, accessible component builders for Svelte: instead of styled components, each builder (accordion, combobox, dialog, popover, select, slider, tabs, toaster, tooltip, tree and more) gives you the state, keyboard handling and ARIA attributes, and you attach them to your own elements and style them however you like. It follows the WAI-ARIA authoring practices, is written in TypeScript and works with SvelteKit. The current generation, built for Svelte 5 with runes, is published as melt and developed in the next-gen repository; the earlier Svelte 4 version, @melt-ui/svelte, stays on melt-ui.com. It's MIT-licensed and maintained by volunteers.
Problems it solves
- accessible dropdowns, dialogs and comboboxes for Svelte that I can style with my own design system
- keyboard navigation and ARIA attributes for custom Svelte components without implementing the WAI-ARIA patterns myself
- build our own Svelte component library on unstyled, accessible primitives
- a headless select, slider and tabs for Svelte 5 that work with runes
- attach component behaviour to my existing Svelte elements instead of wrapping them in someone else's components
Features
- headless builders for accordion, avatar, collapsible, combobox, dialog, file upload, pin input, popover, progress, radio group, select, slider, tabs, toaster, toggle, tooltip and tree
- strict adherence to WAI-ARIA authoring practices
- builders attach to any element or component
- TypeScript and SvelteKit support
- next generation built for Svelte 5 runes (melt); Svelte 4 version as @melt-ui/svelte with a CLI installer
Alternatives
The same job
These do what Melt UI does.
- Bits UI The headless components for Svelte
- Ark UI Unstyled, accessible UI components for your design system. Works in React, Vue, Solid, and Svelte.
- Radix UI Core building blocks for your design system
- React Aria Accessible React components and hooks with no styles
- Base UI Unstyled UI components for building accessible user interfaces
- UI SDK A library of behaviors for agents to build the next generation of user interfaces.
