Introduction
An open-source collection of accessible and customizable component builders for creating user interfaces with Svelte.
Melt UI empowers developers to create accessible UIs that embody their unique style. With a strong focus on accessibility, limitless customization options, and an overall delightful developer experience, Melt UI strives to be the de-facto headless UI library for Svelte.
In Construction: Melt UI is in its early stages. Expect breaking changes in minor releases until 1.0 is ready! And lots of new stuff! 🚀
Features
Builder API
Unlike a traditional component library, Melt UI provides access to builders instead of components. Builders are just functions that generate a collection of properties that can be assigned to any element or component.
This is all you need to have a working Collapsible component in your application. The builders automatically apply the necessary attributes and event handlers to your element or component.
Accessible by Design
Melt UI puts accessibility front and center, making sure your UI components are inclusive and user-friendly. We follow WAI-ARIA design patterns and take care of all the nitty-gritty details like aria attributes, role management, focus handling, and keyboard navigation. Each builder's page includes a section on accessibility, with references to relevant WAI-ARIA guidelines and instructions for using the builder in an accessible manner.
Bring Your Own Styles
The builders ship with zero predefined styles, allowing you to customize them to seamlessly integrate with your application's design system. Whether you prefer vanilla CSS, CSS preprocessors, or CSS-in-JS libraries, our components work harmoniously with your preferred styling solution.
Open and Extensible
Melt UI embraces your desire for customization. The builder architecture is open and flexible, allowing you to tinker with every aspect of the components. Wrap them, extend their functionality, or add event listener and props to tailor them to your exact needs.
Simplified DX
We want to simplify your development workflow. By default, Melt UI components are uncontrolled, freeing you from the burden of managing local states. However, if you prefer greater control, you can switch to controlled components. We handle the behind-the-scenes complexity, ensuring a smooth developer experience.
TypeScript and SvelteKit Support
Melt UI offers a fully typed API, safeguarding your code while providing autocompletion superpowers in your preferred code editor. All our components share a consistent API, promoting familiarity and minimizing surprises. The components are also build with SSR in mind, making them a perfect fit for SvelteKit.
Built by the community
Melt UI is an open-source project built by the community for the community. It wouldn't be possible if it wasn't for the amazing work of some amazing people.
- TG
- HJ
- GI
- CO
- JJ
- ES
- AZ
- MB
- BM
- RJ
- AI
- PR
- MS
- RT
- DW
- AB
- MD
- TT
- BM
- FP
- MS
- MC
- KM
- WH
- MG
- HV
- KY
- RR
- JB
- NW
- LO
- DI
- RU
- MD
- KD
- HK
- AC
- AB
- GA
- SP
- PB
- DE
- ET
- TD
- SS
- PD
- OD
- OM
- MB
- JB
- DL
- AH
- BO
- TB
- VL
- TM
- TH
- TK
- SI
- SI
- SI
- SA
- DA
- RS
- 18
- BU
- KA
- MA
- MS
- ST
- RO
- YU
- O-
- N3
- MI
- SH
- TO
- HA
- EV
- DE
- BO
- B-
- BA
- AZ
- WI
- AA
- ND
- AT
- AJ
- AC
- AN
- AN
- DE
- BE
- BR
- BU
- SH
- EP
- MA
- EM
- EV
- FB
- FA
- FE
- IV
- JA
- JA
- JE
- JO
- JP
- SJ
- JO
- BR
- XO
- LE
- LU
- MA
Inspiration and Credits
We're big fans of open source and love working collaboratively. Over time, we've taken cues and inspiration from some really amazing projects and people that have motivated us to continuously improve our ideas.
Some of the projects we've been inspired by in no particular order:
- Zag - https://zagjs.com
- Radix UI - https://radix-ui.com
- Grail UI - https://grail-ui.vercel.app
- Skeleton - https://skeleton.dev
On This Page