import * as React from 'react'import { Stack } from '@welcome-ui/stack'const Example = () => {return (<Stack><div>Foo</div><div>Bar</div><div>Baz</div></Stack>)}export default Example
Installation
1
Run the following command:
yarn add @welcome-ui/stack
2
Import component:
import { Slider } from '@welcome-ui/stack'
The default use of Stack will stack its children vertically.
Spacing and direction
You can change the direction & the spacing.
Childs
It will ensure that its children are lis when is rendered as an ul or an ol.