Stack
A flexible layout component that uses flexbox to create responsive layouts with easy alignment and spacing.
Direction
The Stack component supports various flex directions including row, column, row-reverse, and column-reverse.
Loading...
Show Code
Responsive Direction
Use responsive direction to switch between different layouts for different screen sizes.
Loading...
Show Code
Gap
The gap prop controls the spacing between items in the Stack.
Loading...
Show Code
Responsive Gap
Use responsive gap to adjust spacing for different screen sizes.
Loading...
Show Code
Align
The align prop controls how items are aligned along the cross axis (perpendicular to the main axis).
Loading...
Show Code
Justify
The justify prop controls how items are distributed along the main axis.
Loading...
Show Code
Divider
The divider prop adds visual separators between Stack items.
Loading...
Show Code
Wrap
The wrap prop controls whether items should wrap to multiple lines when the container width is insufficient.
Loading...
Show Code
Text Align
The textAlign prop controls the text alignment within the Stack container.
Loading...
Show Code
Bleed
The bleed prop uses negative margins to extend content beyond its usual boundaries for improved layout integration.
Loading...
Show Code
Size
The Stack component supports various sizing options including height, width, aspectRatio, and responsive sizing.
Loading...
Show Code
Max Size
Use maxHeight, maxWidth, minHeight, and minWidth to control Stack boundaries.
Loading...
Show Code
Background
Stack supports various background colors with appropriate text color combinations.
Loading...
Show Code
Border
Stack supports various border colors and styles.
Loading...
Show Code
Radius
Stack supports various border radius options.
Loading...
Show Code
Position
Stack supports various positioning options including relative, absolute, and sticky.
Loading...
Show Code
Overflow
The overflow prop controls how content that exceeds the Stack boundaries is handled.
Loading...
Show Code
Animated
The animated prop enables smooth transitions for background, text, and border colors.
Loading...
Show Code
Inset
The inset prop and its variants (insetTop, insetStart, insetEnd, insetBottom) control positioning within positioned containers.
Loading...
Show Code
Margin
The margin prop and its variants control spacing outside the Stack container.
Loading...
Show Code
Padding
The padding prop and its variants control spacing inside the Stack container.
Loading...
Show Code
Composition
Stack.Item is a compound component that provides additional control over individual items within a Stack container. It allows for fine-grained control over item behavior, spacing, and layout.
Loading...
Show Code
Grow Property
The grow prop allows an item to expand and take up the remaining space in the Stack container.
Loading...
Show Code
Gap Before Property
The gapBefore prop adds custom spacing before a specific item, overriding the parent Stack's gap for that item.
Loading...
Show Code
Columns Property
The columns prop allows you to specify the number of columns for a Stack.Item, useful for creating grid-like layouts within a Stack.
Loading...
Show Code
Order Property
The order prop allows you to specify the arrangement of Stack.Item components in a specific sequence.
Loading...
Show Code
Accessibility
Key | Description |
---|---|
⬢ | Customize the HTML tag using the as prop to ensure better accessibility and semantics. |