Thanks to visit codestin.com
Credit goes to paste.twilio.design

Skip to contentSkip to navigationSkip to topbar
Codestin Search App Assistant
Figma
Star

Stack

Version 9.0.1GithubStorybook

A horizontal and vertical flow component used to create space between components.

Guidelines

Codestin Search App

About Stack

Codestin Search App

Stack is a horizontal and vertical flow component used to create space between components. It allows you to easily stack elements together with defined spacing between them. It can be set up either vertically or horizontally, and uses tokens for spacing.

Accessibility

Codestin Search App

By default, Stack has no accessibility concerns. While using Stack, it is up to you to manage the resulting accessibility implications. You may want to consider how the stack affects readability due to ordering, and the visual or content hierarchy of your page.

Vertical Stack

Codestin Search App

Elements within the stack are placed vertically with bottom spacing. This is achieved by setting orientation="vertical". A spacing property is provided to let you to create space between each stacked element. spacing will take any Spacing Token as its value.

Horizontal Stack

Codestin Search App

Elements within the stack are placed horizontally with right spacing. This is achieved by setting orientation="horizontal". A spacing property is provided to let you to create space between each stacked element. spacing will take any Spacing Token as its value.

Responsive Stack

Codestin Search App

orientation is a responsive props. You can provide it an array of orientation values to change the orientation based on the screen sizes supported by your theme.