Looking at the docs here: https://theme-ui.com/components/variants
It says:
The following components support the variant prop, but do not include default variant keys.
But it does not specify how to use variant with those components. I see with other components, there is a specific "Variant group" in the table (i.e. Grid goes with grids, Button goes with buttons) but there's no variant group for Box or Flex.
Using the Theme type to specify a theme in TypeScript, there is no way to add a boxes variant group. The Box component seems to be looking at a variants key but you also cannot add that in TypeScript.
How do you define variants for Box and all of the other components that don't have their own variant group?
Looking at the docs here: https://theme-ui.com/components/variants
It says:
But it does not specify how to use
variantwith those components. I see with other components, there is a specific "Variant group" in the table (i.e.Gridgoes withgrids,Buttongoes withbuttons) but there's no variant group forBoxorFlex.Using the
Themetype to specify a theme in TypeScript, there is no way to add aboxesvariant group. TheBoxcomponent seems to be looking at avariantskey but you also cannot add that in TypeScript.How do you define variants for
Boxand all of the other components that don't have their own variant group?