carbon-ui-builder
carbon-ui-builder copied to clipboard
A* components should use UI*State types
Could you please elaborate a bit?
Sure thing, @SahilAnower, thanks for asking 🙂
In the code you'll find components that start with A
, followed by the name of the component. These components are draggable components use in the editor to create and modify the page you're building.
There are also components starting with UI
, followed by the name of the component.
They are in a separate folder ui-components
. These are a base of a future rendering library that takes JSON and renders the design it represents.
The files for UI
components also define types/interfaces that each of the components accepts as an input.
A
components should use those types to instill better form and make it easier to code. afaik they mostly use any
at the moment.
Is this what you were asking for?