Skip to content

Divider 分割线

Basic · Display component

Content separators and labels.

On-demand importwbbb-ui/components/divider

Basic Usage

Example code
<script setup lang="ts">
import { WbbbDivider } from 'wbbb-ui/components/divider'
import 'wbbb-ui/styles/divider'
</script>

<template>
  <WbbbDivider />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

DefaultContent

API Reference

Props

PropertyDescriptionTypeDefaultRequired
dashedUses a dashed divider line instead of a solid one.booleanfalseNo
directionSets the layout or divider direction.WbbbDirection'horizontal'No
textPositionSets the position of text relative to the divider.'left' \| 'center' \| 'right''center'No

Events

None

Slots

  • default

Two-way binding

Does not support v-model.

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences