Stack
A Stack component allows the organization of its children in a vertical or horizontal layout. It also allows the specification of the spacing between the stack elements and the addition of a divider between the elements.
1
2
3
4
Custom direction
You can set the direction
prop to different values depending on the breakpoint you’re currently on. The example
below shows a stack in a column format for breakpoints xs
and sm
, and in a row format for breakpoints md
and above.
1
2
3
4
Custom divider
The divider
property can be a boolean (rendering the default divider), or a ReactNode
to use as a custom divider.
1
2
3
4