Skip to content

Accessibility: Work in progress

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>

Imports

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

Props

NameTypeDefaultDescription
id *string | undefinedundefinedThe unique identifier of the element
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