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
Name | Description | Type | Default |
---|---|---|---|
align | Alignment | String | - |
direction | Spacing direction | String | horizontal |
size | Spacing size, support for setting horizontal and vertical spacing separately | String | small |
wrap | The spacing of the wrapping type, used in the scene of wrapping. | Boolean | false |
fill | Fill the block | Boolean | false |
Radio Slots
Name | Description |
---|---|
divider | Set separator |