Skip to content

Line

A divider line component that supports horizontal and vertical directions, with options for solid or dashed styles, custom color, and thickness.

Platform Compatibility

App(vue)App(nvue)H5Mini Program

Code Examples

Basic Usage

Renders a horizontal divider line by default.

html
<see-line />

Custom Color and Thickness

html
<see-line color="#007aff" size="4rpx" />

Dashed Style

html
<see-line :is-dashed="true" />

Vertical Divider

html
<view style="display: flex; align-items: center;">
  <text>Left</text>
  <see-line direction="vertical" length="60rpx" margin="0 20rpx" />
  <text>Right</text>
</view>

API

Props

PropertyDescriptionTypeDefaultOptions
directionDirection'horizontal' | 'vertical''horizontal'horizontal / vertical
colorColorstringvar(--see-border-color)Any CSS color value
sizeThicknessstring'1px'Any CSS width value
marginOuter marginstring'0'Any CSS margin value
is-dashedWhether dashedbooleanfalsetrue / false
lengthLengthstring'100%'Any CSS width value

Liao ICP No. 2025070134