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">Browser</Heading>
<Dividermy={2}/>
<Flexmx={3}direction="row"justify="space-evenly">
<Iconas={<AntDesignname="chrome"/>}/>
<Dividerorientation="vertical"/>
<Iconas={<FontAwesomename="firefox"/>}/>
</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.