carbon-ui-builder icon indicating copy to clipboard operation
carbon-ui-builder copied to clipboard

A* components should use UI*State types

Open zvonimirfras opened this issue 2 years ago • 2 comments

zvonimirfras avatar Aug 04 '22 19:08 zvonimirfras

Could you please elaborate a bit?

SahilAnower avatar Oct 19 '22 19:10 SahilAnower

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?

zvonimirfras avatar Oct 19 '22 20:10 zvonimirfras