ShadcnUI.Components.Content.Separator (shadcn_ui v1.0.0)

Copy Markdown View Source

Semantic or explicitly decorative separation between caller-owned regions.

Semantic mode renders a native hr. Decorative mode renders a nonsemantic element hidden from accessibility APIs. Orientation controls presentation; applications remain responsible for choosing whether a boundary carries document meaning.

Summary

Functions

Renders one semantic or explicitly decorative separator.

Functions

separator(assigns)

Renders one semantic or explicitly decorative separator.

Attributes

  • mode (:atom) - Defaults to :semantic. Must be one of :semantic, or :decorative.
  • orientation (:atom) - Defaults to :horizontal. Must be one of :horizontal, or :vertical.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.