You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a review, I noticed the return of w.div() is the component, and it can't return a chain for nested components.
Other way to implement it should be using a parameter (ex: "inner") that should be any component. Then, the children content will be sent to the inner component:
Today it is only possible to create one level component.
Should be possible to create nested combinations with the same initial parameters?
Ex:
const Box = w.div("color-red", { ...config1 }).nest.div("border-2", { ...config2})
and then when use, any parameters will be reflected to all nested components:
and variant should reach config1 and config2.
The text was updated successfully, but these errors were encountered: