ShadcnUI.Components.Navigation.SectionHeader (shadcn_ui v1.0.0)

Copy Markdown View Source

A page-section heading composition that preserves caller heading semantics.

The required heading slot must contain the caller's chosen heading element. ShadcnUI does not infer a level, handle actions, observe scrolling, or own section state. Sticky and anchor effects are optional CSS presentation.

Summary

Functions

Renders a section header without manufacturing a heading level.

Functions

section_header(assigns)

Renders a section header without manufacturing a heading level.

Attributes

  • presentation (:atom) - Defaults to :static. Must be one of :static, or :sticky.
  • density (:atom) - Defaults to :default. Must be one of :compact, :default, or :comfortable.
  • anchor_effect (:atom) - Defaults to :offset. Must be one of :none, :offset, or :accent.
  • border (:boolean) - Defaults to false.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • heading (required)
  • description
  • actions