BlockStack

BlockStack is used to stack elements vertically.

Preview​

BlockStack.jpg

Code example​

render('Checkout::Dynamic::Render', (props) => {
return (
<BlockStack>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
</BlockStack>
);
});

BlockStackProps​

tip

Optional properties are marked with a ?. Properties without a ? are required.

inlineAlignment?​

InlineAlignment

Alignment along the main axis, where the main axis is the inline axis.


spacing?​

Spacing Default: base

Spacing between elements.


padding?​

MaybeShorthandProperty<Spacing>

Inner spacing.


Type descriptions​

InlineAlignment​

start center end

Spacing​

none base extraTight tight loose extraLoose

MaybeShorthandProperty​

T | ShorthandProperty<T>

ShorthandProperty​

[T, T] [T, T, T, T]

Was this article helpful to you?