Stack
Allows user to easily stack elements with space between them.
version
5.1.0
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 li
s when is rendered as an ul
or an ol
.
Properties #
Name | Type(s) | Default | Required |
---|---|---|---|
direction | "row" "column" | column | |
spacing | "xxs" "xs" "sm" "md" "lg" "xl" "xxl" | md |