Skip to content

Space

Providing unified space between each components

Basic usage

Basic usage of spacing components.

Vertical

You can set the spacing in the vertical direction.

Size

Built-in 4 sizes, mini-4px、small-8px、 (default)、medium-16px large-24px, and also support to pass numbers to customize the size.


Align

There are 4 built-in alignment methods, namely start、center、end、baseline, and the default is center in horizontal mode.


This is the content.

This is the content.

Wrap

Surround type spacing, there are spacing on all sides, generally used in the scene of line wrapping.

Divider

Set separators for adjacent child elements.


Space API

Space Attributes

NameDescriptionTypeDefault
alignAlignmentString-
directionSpacing directionStringhorizontal
sizeSpacing size, support for setting horizontal and vertical spacing separatelyStringsmall
wrapThe spacing of the wrapping type, used in the scene of wrapping.Booleanfalse
fillFill the blockBooleanfalse

Radio Slots

NameDescription
dividerSet separator