page Dividercomponent { seo { title = "Divider component" description = "Theme-aware, responsive divider component." } view {
W WRNexusJS
layout component

Divider

Theme-aware, responsive divider component.

@wrnexus/ui 0.3.55 props0 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<Divider
  size="default"
  color="primary"
  label="label"
  orientation="horizontal"
/>

Legacy mount name: data-component="Divider".

Props and attributes

PropTypeRequirementDefault
sizestringOptional"default"
colorstringOptional"primary"
labelstringOptional""
orientationstringOptional"horizontal"
classstringOptional""

Slots

This component does not declare a slot.

Events

This component does not declare a custom event.

Source contract

Installed source: components/Divider.wrn

component Divider {
  props {
    size = "default"
    color = "primary"
    label = ""
    orientation = "horizontal"
    class = ""
  }
  view {
        <div class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--divider wire-next--divider-{orientation} {class}" role="separator" aria-orientation="{orientation}">{#if label}<span>{label}</span>{/if}</div>
    }
}
} }