VStack
<VStack />
is a flex box which can wrap children components.
Its flexDirection
is fiexed as column
.
Loading...
How to use
import { VStack } from '@vibrant-ui/components';
Properties
<VStack />
is based on <Stack />
, with a fixed direction(flex-direction) as vertical
.
Therefore, <Vstack />
can take all properties that <Stack />
have except direction
.
Read Properties section of Stack to use Siez, Position, Overflow etc.
Prop | Type | Default | Description |
---|---|---|---|
alignVertical | space-between | start | end | center | start | Alignment property along with the main axis. Matched with justifyContent of flex box props. |
alignHorizontal | stretch | start | end | center | stretch | Alignment property along with the cross axis. Matched with alignItems of flex box props. |
Usage
alignVertical
Alignment property which is aligned along the main axis.
It corresponds to the justifyContent
of the flex box that flexDirection
is set as column
.
Loading...
alignHorizontal
Alignment property which is aligned along the main axis.
It corresponds to the alignItems
of the flex box that flexDirection
is set as column
.
Loading...