WlDivider

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

Change props to see the result: the example and code use the same settings. “Reset” restores the initial values.

Settings

Data and content are defined in the Vue SFC. The API tab describes data structures, props and slots.

Props pt, orientation, models, handlers and slots can be edited in the SFC. See their descriptions in API.

Example

Focus: outside the example · pointer: outside the example

Explore the live example and copy its Vue SFC into your application. Settings on the left can be combined.

Code for your application

Vue SFC · current settings
<script setup lang="ts">
import { WlDivider } from "legato-ui";
</script>

<template>
  <div class="wl-stack" data-space="md">
    <WlDivider >{{ "Additional details" }}</WlDivider>
  </div>
</template>

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.

Vue SFC · additional 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>