MCPcopy
hub / github.com/melt-ui/melt-ui

github.com/melt-ui/melt-ui @v0.86.6 sqlite

repository ↗ · DeepWiki ↗ · release v0.86.6 ↗
923 symbols 3,425 edges 402 files 53 documented · 6%
README

Melt UI is a set of headless, accessible component builders for Svelte.

npm

About

Melt UI is meant to be used as a base for your own styles and components. It offers:

  • Uncoupled builders that can be attached to any element/component
  • Typescript and SvelteKit support out-of-the-box
  • Strict adherence to WAI-ARIA guidelines
  • Easy to use examples and documentation
  • A high emphasis on accessibility, extensibility, quality and consistency

Getting started

Run our installer script to get started:

npx @melt-ui/cli@latest init

Import the builders to your code and start using them:

<script>
    import { createCollapsible, melt } from '@melt-ui/svelte'

    const {
        elements: { root, content, trigger },
        states: { open }
    } = createCollapsible()
</script>




    <button use:melt="{$trigger}">{$open ? 'Close' : 'Open'}</button>


Obi-Wan says: Hello there!





Contributing

Contributions are welcome and encouraged!

Melt UI is under active development. Currently planned features can be found in the issues tab, alongside bug reports.

We work on this project on a volunteer basis in our free time. If you notice something that hasn't been implemented yet or could be improved, do consider contributing to the project! The goal is to enhance the experience of building with Svelte and improve the ecosystem for everyone.

Check out our Contributing guide to learn more.

Sponsors

Logos from Sponsors

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 work of some amazing people.

Contributors

Discord

Got any questions? Want to talk to the maintainers?

Our Discord community is a great place to get in touch with us, and we'd love to have you there.

Melt UI Discord community

Similar projects

Looking for more? Check out the other component library projects available for Svelte.

Extension points exported contracts — how you extend this code

Locale (Interface)
(no doc)
src/app.d.ts
Machine (Interface)
(no doc)
src/lib/internal/helpers/store/stateMachine.ts
PreviewObj (Interface)
(no doc)
src/docs/utils/preview.ts
Point (Interface)
(no doc)
src/lib/internal/helpers/polygon/hull.ts

Core symbols most depended-on inside this repo

addMeltEventListener
called by 174
src/lib/internal/helpers/event.ts
isHTMLElement
called by 147
src/lib/internal/helpers/is.ts
elementSchema
called by 136
src/docs/utils/content.ts
focus
called by 128
src/pagefind/pagefind-modular-ui.js
makeElement
called by 126
src/lib/internal/helpers/makeElement.ts
name
called by 118
src/lib/internal/helpers/makeElement.ts
effect
called by 98
src/lib/internal/helpers/store/effect.ts
executeCallbacks
called by 77
src/lib/internal/helpers/callbacks.ts

Shape

Function 863
Method 50
Class 6
Interface 4

Languages

TypeScript100%

Modules by API surface

src/pagefind/pagefind-ui.js150 symbols
src/pagefind/pagefind-modular-ui.js45 symbols
src/lib/builders/date-field/create.ts35 symbols
src/lib/builders/menu/create.ts31 symbols
src/lib/builders/date-field/_internal/helpers.ts22 symbols
src/docs/data/builders/menu.ts22 symbols
src/lib/internal/helpers/is.ts20 symbols
src/lib/builders/scroll-area/scrollbars.ts20 symbols
src/docs/utils/preview.ts19 symbols
src/lib/builders/scroll-area/create.ts17 symbols
src/lib/internal/helpers/date/utils.ts16 symbols
src/lib/internal/helpers/makeElement.ts15 symbols

Dependencies from manifests, versioned

@changesets/cli2.26.2 · 1×
@floating-ui/core1.3.1 · 1×
@floating-ui/dom1.4.5 · 1×
@fontsource/inter5.0.8 · 1×
@huntabyte/mdsvex0.16.5 · 1×
@internationalized/date3.5.0 · 1×
@melt-ui/pp0.1.0 · 1×
@playwright/test1.39.0 · 1×
@storybook/addon-a11y7.6.12 · 1×
@storybook/addon-essentials7.6.12 · 1×
@storybook/addon-interactions7.6.6 · 1×
@storybook/addon-links7.6.12 · 1×

For agents

$ claude mcp add melt-ui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact