Possible to share built in Elements components on GitHub?

It sure would make life easier to keep in line with Elements built in components if they were available on GitHub un-encoded.

You want to build a component that works with text, boom! start with the Default text component, and your off to the races.

There are so many properties to try and copy like for like to keep the experience the same for the end user.

Hi @Doobox,

would be a cool idea. But I assume some of those componenents are quite special and use non-public features? Not sure about that. At least thats how it appears to me in some cases. When looking at the browser source.

For the base settings you can always use the custom components. Thats what I start with normally. They have a lot sample code :smiley:

1 Like

Yeah, even just the basics like text, image, svg etc.
Text has about a bajillion properties :joy:

Yeah right the props. I forgot about those. Took me a while to build up the same and have the same look and feel. :rofl:

I saved a few to Snippets Lab that I copied like for like for a couple components already. But just started another component that really should have everything in the kitchen sink included, and was like Urgggh :sob:

Could be really whiz bang in a right click context menu:

Oooooo! Mind readers :joy:

@Doobox That is just for page properties. But I do like the idea of us providing some more example components that use some of our control layouts making it easier for you.

If ever you need anything specific, just ask and we can post code snippets to help out :blush:

Nope, we’re only using the public API, nothing is private… anything we do in a component is available to you guys :tada:

2 Likes

The new properties component is a really handy quick reference!

1 Like

Just clicking around in Elements reminded me of this discussion.
So before I forget (getting old), This seems like it might be fairly low hanging fruit when you guys get back onto the developer stuff.

Setting a “Use developer features” toggle in settings would enable, this and maybe more developer features like the debugger etc etc…

Then we’d get an extra context menu item here when right clicking a groups title bar “Copy Group”. Copies the groups json to the clipboard.

This would be super useful. Don’t know what other devs think, but I can’t imagine needing anything else, to aid development.

Sure eventually something in app with in app UI could be cooked up, but like I say. On the face of it, this seem like it just may be low hanging fruit in your codebase :man_shrugging:

1 Like