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

Parameterdescriptiontypedefault value
verticaldisplay verticallybooleanfalse
justifyalignmentsame as the align items attribute value of CSSstart
alignvertical alignment (effective when vertical is not true)同css的align-items属性值center

Last Updated: