Replies: 1 comment 4 replies
|
My thoughs, I write down what's on my mind.
Can we create component from builder ? I think we should be able to. In that case, components can be created from code based (based components) components ?
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone 👋
I’m opening this thread to align on how we want to architect the visual builder for Klickbee CMS.
✅ What’s already in place in branch feature/builder
autoclampsystem for responsive units💡 Initial idea
I'm currently leaning toward a config-driven approach for components:
Each component would come with its own config file defining its
props, and each prop would use a typedfieldProp(liketext,number,date,color,select, etc.).❓ Open questions
Where should we store the component config files?
How do we structure and validate the config?
How do we render components dynamically in the builder?
render(config)function that maps a JSON tree to React output📦 Example structure (WIP)
/components /Hero index.tsx config.ts ← defines props + types + default valuesLooking forward to your thoughts!
Let’s make this builder clean, visual, and scalable 🚀
All reactions