Skip to content
Accessibility: Full
Translations: Not Needed

Divider

Divide something.

Simple Divider

oops oops
Vue
html
<template>
  oops
  <HLDivider />
  oops
</template>

<script setup lang="ts">
  import { HLDivider } from '@platform-ui/highrise'
</script>

With Text

Vue
html
<template>
  <HLDivider> Center </HLDivider>
  <HLDivider titlePlacement="left"> Left </HLDivider>
  <HLDivider titlePlacement="right"> Right </HLDivider>
</template>
<script setup lang="ts">
  import { HLDivider } from '@platform-ui/highrise'
</script>

Margins

oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops

oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops

oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops

oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops oops

Vue
html
<template>
  <HLDivider> With Margins </HLDivider>
  <HLDivider :marginTop="false"> No Top Margin </HLDivider>
  <HLDivider :marginBottom="false"> No Bottom Margin </HLDivider>
</template>
<script setup lang="ts">
  import { HLDivider } from '@platform-ui/highrise'
</script>

Vertical Divider

Text
Text
Vue
html
<template>
  <div style="display: flex; align-items: center">
    Text
    <HLDivider vertical style="height: 150px; margin: 0 8px" />
    <HLDivider vertical style="height: 120px; margin: 0 8px" />
    <HLDivider vertical style="height: 100px; margin: 0 8px" />
    Text
  </div>
</template>
<script setup lang="ts">
  import { HLDivider } from '@platform-ui/highrise'
</script>

Dashed Divider

Text Text
Vue
html
<template>
  Text
  <HLDivider dashed> </HLDivider>
  Text
</template>
<script setup lang="ts">
  import { HLDivider } from '@platform-ui/highrise'
</script>

Accessibility

  • Set role="separator" on HLDivider when it communicates structure, adding aria-orientation="vertical" for non-horizontal dividers.
  • Provide aria-label / aria-labelledby if the divider carries a caption; otherwise mark it aria-hidden="true" so it stays decorative.

Imports

ts
import { HLDivider } from '@platform-ui/highrise'

Props

NameTypeDefaultDescription
idstringAuto (hr-divider-*)The id of the element. Generated automatically when omitted.
titlePlacement'left' | 'right' | 'center''center'The position of the title within the divider
dashedbooleanfalseWhether the divider is dashed
verticalbooleanfalseWhether the divider is vertical
marginTopbooleantrueWhether to apply a margin at the top
marginBottombooleantrueWhether to apply a margin at the bottom

Slots

NameParametersDescription
default()The default content slot