ComponentsStack

Stack

The Stack component arranges its children in a vertical or horizontal layout.

It supports customizable spacing and optional dividers between elements.

GitHub LogoSource Code
1
2
3
4

Custom direction

You can set the direction prop responsively based on breakpoints.
For example, use a column layout on xs and sm, and switch to a row layout on md and above.

1
2
3
4

Custom divider

The divider prop accepts either a boolean—to render the default divider—or a ReactNode for a custom divider element.

1
2
3
4