Skip to content

Gap

Generally used to replace margin or padding in page layout; or serve as a (bottom) placeholder element.

Basic Usage

Set the title through the height property and background color through the background property.

html
<wd-gap bg-color="#FFFFFF"></wd-gap>

Custom Background Color

html
<wd-gap bg-color="#4D80F0"></wd-gap>

Custom Height

html
<wd-gap bg-color="#4D80F0" height="120rpx"></wd-gap>

Bottom Safe Area

html
<wd-gap safe-area-bottom height="0"></wd-gap>

Attributes

ParameterDescriptionTypeOptionsDefaultVersion
heightHeightstring/number-15-
bgColorBackground colorstring-transparent-
safeAreaBottomEnable bottom safe areabooleantrue/falsefalse-

External Classes

Class NameDescriptionVersion
custom-classCustom style-

Source Code

Documentation
Component

Released under the MIT License.

Released under the MIT License.