DEV Community

mistlog
mistlog

Posted on

3

Element UI in Svelte

You may want to develop svelte app in another way: use svelte-draft. This site with live editing is implemented in svelte-draft itself and svelte-element.

svelte-element provides vanilla svelte component, so that you can use in both svelte and svelte-draft.

I'm not good at UI engineering, however, take this button implementation as an example:

carbon

The skeleton is clear: receive props -> config state -> provide UI.

carbon (1)

As for state:
carbon (2)

I do believe that code will be maintainable in this way.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Collapse
 
dansvel profile image
dan

wow, interesting concept,,

but it's feel weird for me,,

nice share,,

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay