Official version of JSX Compound component context
complete
Ólafur Nils Sigurðsson
The documentation refers to a createStyleContext context creator from park-ui regarding this. It would be great to have an "official" version of this as this method is a fundemental way to create truly composable components.
Segun Adebayo
complete
Shipped in v1
Ivica Batinic
createContext doesn't play well with Server Components so I don't think this is the best approach... but this is just my two cents
Ólafur Nils Sigurðsson
Ivica Batinic: Yes I know, but as far as I know this is the only way to create composable components that share styles and/or logic. Every radix-ui component for example contains context.
One would keep in mind only to use this for the furthest leaf components in your tree.