LanternUI.Components.Separator (LanternUI v0.8.2)

Copy Markdown View Source

Visual divider — horizontal, vertical, or labeled. Mirrors Fluxon's separator/1.

<.separator />
<.separator text="or" />
<.separator vertical />

Summary

Functions

separator(assigns)

Attributes

  • text (:string) - Optional centered label on a horizontal rule. Defaults to nil.
  • vertical (:boolean) - Render a vertical divider instead of horizontal. Defaults to false.
  • class (:any) - Extra classes merged onto the root element. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.