by korm · 1y ago · 0 comments
Compare the following:
<Stack gap={2} direction="row">
<Box>
<Avatar />
</Box>
<Box>
<Button />
</Box>
</Stack>
-----
<MyCustomWrapper>
<InnerChild>
<Avatar>
</InnerChild>
<InnerChild>
<Button />
</InnerChild>
</MyCustomWrapper> <div className=“flex gap-2”>
<Button/>
<Avatar/>
<\div>
Then just apply the box styles using *: selector or directly in the component