Melt UI
UI library · Free
A collection of headless Svelte primitives: accessible component behavior can be combined with your own application markup and styles.
Also known as: melt-ui/melt-ui

What you can use for free
Melt UI code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
Melt UI code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- UI components and behavior
- An app using the required tech stack and its own design
- Combine Svelte primitives with your own component markup
- Build an accessible component system without an imposed visual style
Example workflow
A possible workflow; this is not a report of hands-on testing.
UI components and behavior with Melt UI.
Before you start
- A working Svelte; TypeScript project and a specific use case: UI components and behavior.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current Melt UI documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing Melt UI
UI components and behavior
Choose this when
- UI components and behavior
- An app using the required tech stack and its own design
- Combine Svelte primitives with your own component markup
Consider alternatives when
- When choosing for this topic, compare Melt UI with Angular Material. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare Melt UI with Bits UI. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- Attach builder actions to the corresponding elements and define your own styles.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- The README describes WAI-ARIA-oriented builder behavior; this does not guarantee accessibility of a particular modified composition, which requires separate checking.
Frequently asked questions
What can you use for free in Melt UI?
Melt UI code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with Melt UI?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for Melt UI?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with Melt UI?
Check the project's stack and version against the current Melt UI documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
What does a Melt UI builder provide to a Svelte application?
A builder returns elements/actions and reactive states attached to your own DOM elements or components. The README's collapsible provides root/content/trigger and open state; use:melt attaches behavior. The headless approach lets you choose markup and styles, while SvelteKit and TypeScript are used alongside builders.
Related tasks and approaches
- Angular Material
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Bits UI
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- PrimeUI
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Svelte
- TypeScript
- components