Space🚧
The space component is used to generate gaps and split multiple sub components
Code demonstration
import { USpace } from 'ungeui';
Basic usage🚀
Custom gap🌌
Vertical🖕🏻
JustifyContent🕹️
AlignContent🛌
In the horizontal case, it will automatically center the element in the vertical direction. This may not be the result you want, so you can change it through the align attribute
Props
Parameter | description | type | default value |
---|---|---|---|
vertical | display vertically | boolean | false |
justify | alignment | same as the align items attribute value of CSS | start |
align | vertical alignment (effective when vertical is not true) | 同css的align-items属性值 | center |