Skip to content

SDivider <s-divider> ​

ts
import { SDivider } from 'polaris-vue-elements'

Example ​

Content above the divider.Content below the divider.A stronger divider variant.
vue
<script setup>
import { SDivider, SParagraph } from 'polaris-vue-elements'
</script>

<template>
  <SParagraph>Content above the divider.</SParagraph>
  <SDivider />
  <SParagraph>Content below the divider.</SParagraph>
  <SDivider color="strong" />
  <SParagraph color="subdued">A stronger divider variant.</SParagraph>
</template>

Props ​

PropTypeDescription
color"base" | "strong"The visual prominence of the divider line. - base: Standard divider for most separations (default) - strong: More prominent divider for major section breaks
direction"block" | "inline"The orientation of the divider line, using logical properties. - inline: Horizontal divider for separating vertically stacked content - block: Vertical divider for separating horizontally arranged content

Released under the MIT License.