Skip to content


This component is generally used in scenes where the content blocks are separated by a gray block, which is convenient for the user to unify the style and reduce the workload

platform compatibility


basic use

Direct import can be used

  • Configure the height through height, the unit is px
  • Configure background color via bgColor
<wu-gap height="80" bgColor="#bbb"></wu-gap>
<wu-gap height="80" bgColor="#bbb"></wu-gap>


Gap Props

property namedescriptiontypedefault valueoptional values ​​
bgColorbackground colorStringtransparent (background transparent)-
heightHeight of interval slot, unit pxString / Number20-
marginTopThe distance from the previous element, in pxString / Number0-
marginBottomThe distance from the next element, in pxString / Number0-