Description
@lume/element is a library for writing custom elements with simple templates and reactivity. It is powered by Solid.js signals and effects, and the README says you can write an element once and use it in plain HTML, vanilla JavaScript, Vue, Svelte, Solid.js, Stencil.js, React and Preact. Components get full type checking and autocompletion in the template systems of those frameworks when used in an IDE that supports TypeScript. The API covers the Element base class, a static elementName, a template, static CSS, observed attributes with handlers, lifecycle callbacks and createEffect, along with an autoDefine option. The README recommends the @effect decorator over createEffect. It also says plain vanilla APIs may be all you need for simple elements. Live demos include a click counter example, a CodePen with no decorators, StackBlitz projects with Babel and Vite, and a Solid playground. Install it with npm install @lume/element. The project sits alongside the Lume 3D HTML library, which the README links as a live demo.…
Highlights
- Custom elements with signals and effects
- Templates for Solid.js-powered reactivity
- Usable from Vue, React, Svelte and plain HTML
- TypeScript types and autocompletion
- Live demos on CodePen and StackBlitz
Ratings & Reviews
No ratings yet
Be the first to rate Lume Element.
People also visit
Lume Element FAQ
What is @lume/element?
A library for writing custom elements with simple templates and reactivity, powered by Solid.js signals.
How do I install it?
Run npm install @lume/element, as shown in the README.
Which frameworks can use the elements?
The README says they work in plain HTML and vanilla JavaScript, and in Vue, Svelte, Solid.js, Stencil.js, React and Preact.
Do I need decorators?
No. The README shows demos with and without decorators. It recommends the @effect decorator in place of createEffect.
Is it needed for simple elements?
Not always. The README says vanilla custom element APIs are sometimes all that is needed.
What are the best Lume Element alternatives?
Popular alternatives to Lume Element include Lit, Lightning Web Components and @vscode-elements/elements. See all Lume Element alternatives










