Skip to main content

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.

PropTypeDefaultDescription
alignVerticalspace-between | start | end | centerstartAlignment property along with the main axis. Matched with justifyContent of flex box props.
alignHorizontalstretch | start | end | centerstretchAlignment 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...
Previous
ViewPagerTabGroup