Skip to content

Divider ​

Demo ​

Divider 跨端示例与演示

H5 LiveInteractive browser runtime
Order #1042Paid
Items¥299Discount−¥20
Total¥279

ShippedDeparted Hangzhou center at 16:20

Estimated deliveryTomorrow before 18:00

Basic Usage ​

vue
<template>
  <VDivider />
</template>

Text ​

vue
<template>
  <VDivider>Text</VDivider>
  <VDivider content-position="left">
    Left
  </VDivider>
  <VDivider content-position="right">
    Right
  </VDivider>
</template>

Dashed and Vertical ​

vue
<template>
  <VDivider dashed>
    Dashed
  </VDivider>
  <span>Text</span>
  <VDivider vertical />
  <span>Link</span>
</template>

Props ​

PropTypeDefaultDescription
contentPosition'left' | 'center' | 'right''center'Text position
dashedbooleanfalseDashed line
hairlinebooleantrueHairline marker
verticalbooleanfalseVertical divider
lineColorstringundefinedLine color
textColorstringundefinedText color
borderColorstringundefinedAlias for line color
spacingnumber | stringundefinedSpacing size