Skip to content

Divider

The dividing line that separates the content.

Basic usage

Divide the text of different paragraphs.

I sit at my window this morning where the world like a passer-by stops for a moment, nods to me and goes.
There little thoughts are the rustle of leaves; they have their whisper of joy in my mind.
vue
<template>
  <div>
    <span>
      I sit at my window this morning where the world like a passer-by stops for
      a moment, nods to me and goes.
    </span>
    <m-divider />
    <span>
      There little thoughts are the rustle of leaves; they have their whisper of
      joy in my mind.
    </span>
  </div>
</template>

dashed line

You can set the style of divider.

What language is thine, O sea?
The language of eternal question.
What language is thy answer, O sky?
The language of eternal silence.
vue
<template>
  <div>
    <span>What language is thine, O sea?</span>
    <m-divider border-style="dashed" />
    <span>The language of eternal question.</span>
  </div>
  <m-divider border-style="dotted" />
  <span>What language is thy answer, O sky?</span>
  <m-divider border-style="double" />
  <span>The language of eternal silence.</span>
</template>

Vertical divider

Rain
Home
Grass
vue
<template>
  <div>
    <span>Rain</span>
    <m-divider direction="vertical" />
    <span>Home</span>
    <m-divider direction="vertical" border-style="dashed" />
    <span>Grass</span>
  </div>
</template>

API

Attributes

NameDescriptionTypeDefault
directionSpecify direction segmentationhorizontal verticalhorizontal
border-styleBorder Stylesolid dashed ...solid
sizeSeparation line spacingstring12px
colorColor of dividing linestringvar(--m-theme-400)

Released under the MIT License.