WUI logo

Stack

Allows user to easily stack elements with space between them.

version

5.0.0-alpha.16

install

yarn add @welcome-ui/stack

usage

import { Stack } from '@welcome-ui/stack'

Usage #

The default use of Stack will stack its children vertically.

You can change the direction & the spacing.

It will ensure that its children are lis when is rendered as an ul or an ol.

Properties #

NameType(s)DefaultRequired
direction
"row"
"column"
column
spacing
"xxs"
"xs"
"sm"
"md"
"lg"
"xl"
"xxl"
md

Packages #

Dependencies #
Peer dependencies #

Previous

Shape