Pass the orientation prop and set it to either horizontal or vertical.
Note: If the horizontal orientation is used, make sure that the parent element is assigned a width. If the vertical orientation is used, make sure that the parent element is assigned a height.
Playground
constExample=()=>{
return<Boxw="160">
<Headingmx="auto">Shoes</Heading>
<Dividermy="2"/>
<Flexmx="3"direction="row"justify="space-evenly">
<Headingpy="2">Girls</Heading>
<Dividerorientation="vertical"mx="3"/>
<Headingpy="2">Boys</Heading>
</Flex>
</Box>;
};
Composition
You can use bg or backgroundColor to change the divider's color and width and height to change its width and height respectively.