WlDivider

Divider; a plain line without a slot.
Components / Containers v0.1.0

Placement

Full example
<div class="wl-stack" data-space="md">
  <div v-if="vertical" class="wl-inline" data-space="sm">
    <span>{{ "Overview" }}</span>
    <WlDivider  />
    <span>{{ "Additional details" }}</span>
  </div>
  <WlDivider v-else >{{ "Additional details" }}</WlDivider>
</div>

Divider line and label

Plain divider, “or” text and custom default slot content between page sections.

A simple line separates independent sections of content.

Continue another way.

The default-slot label belongs to the divider; section headings are separate.

Full example
<script setup lang="ts">
import { WlButton, WlDivider } from "legato-ui";
import { ref } from "vue";
const selected = ref(false);
</script>

<template>
  <div class="wl-stack" data-space="lg">
    <p class="wl-text-body">{{ "A simple line separates independent sections of content." }}</p><WlDivider />
    <div><WlButton variant="primary" @click="selected = true">{{ "Sign in by email" }}</WlButton></div>
    <WlDivider>{{ "or" }}</WlDivider>
    <p class="wl-text-body">{{ "Continue another way." }}</p>
    <WlDivider><span class="wl-text-small wl-text-muted">{{ "Next section" }}</span></WlDivider>
    <p v-if="selected" class="wl-text-small" role="status">{{ "Email sign-in selected in the local example." }}</p>
    <p class="wl-text-small wl-text-muted">{{ "The default-slot label belongs to the divider; section headings are separate." }}</p>
  </div>
</template>