Skip to main content

HStack

<HStack /> is a flex box which can wrap children components.

Its flexDirection is fiexed as row.

Loading...

How to use

import { HStack } from '@vibrant-ui/components';

Properties

<HStack /> is based on <Stack />, with a fixed direction(flex-direction) as horizontal.

Therefore, <HStack /> can take all properties that <Stack /> have except direction.

Read Properties section of Stack to use Siez, Position, Overflow etc.

PropTypeDefaultDescription
alignHorizontalspace-between | start | end | centerstartAlignment property along with the main axis. Matched with justifyContent of flex box props.
alignVerticalstretch | start | end | centerstretchAlignment property along with the cross axis. Matched with alignItems of flex box props.

Usage

alignHorizontal

Alignment property which is aligned along the cross axis.

It corresponds to the justifyContent of the flex box that flexDirection is set as row.

Loading...

alignVertical

Alignment property which is aligned along the main axis.

It corresponds to the alignItems of the flex box that flexDirection is set as row.

Loading...
Previous
GridList