Stack components use a modified version of the
CSS lobotomized owl selector
to add spacing between it's children.
Stack's primary use case is to layout items and control the spacing between each
item. If you have a more complicated use case, such as changing the margin on
the last child, you can combine Stack and Flex and use
justify-content: space-between for more control of the layout.
In some scenarios, you might want to add dividers between stacked elements. Pass
the divider prop and set it's value to the StackDivider or any custom React
element.
The future can be even brighter but a goal without a plan is just a wish
Save Money
You deserve good things. With a whooping 10-15% interest rate per annum, grow your savings on your own terms with our completely automated process
functionFeature({ title, desc,...rest }){
return(
<Boxp={5}shadow="md"borderWidth="1px"{...rest}>
<HeadingfontSize="xl">{title}</Heading>
<Textmt={4}>{desc}</Text>
</Box>
)
}
functionStackEx(){
return(
<Stackspacing={8}>
<Feature
title="Plan Money"
desc="The future can be even brighter but a goal without a plan is just a wish"
/>
<Feature
title="Save Money"
desc="You deserve good things. With a whooping 10-15% interest rate per annum, grow your savings on your own terms with our completely automated process"