Section Header
A section-heading composition that preserves the caller-authored heading level.
When to use it. Use it when its native document or form semantics match the caller-owned requirement.
Section Header primary example
How it works
-
<.section_header>The caller owns heading hierarchy and actions. Sticky and target decoration are optional presentation with normal-flow fallback. -
package CSSPackage CSS applies scoped shadcn-style tokens, layout, focus, and state presentation without changing the native contract. -
gallery onlyTheme switching, source copying, search, fixtures, and inspection controls on this page belong to the gallery only; :section_header does not ship them. -
application boundaryShadcnUI does not add application state, authorization, persistence, transport events, or a JavaScript behavior layer to this component.
Examples use package semantic tokens in explicit light and dark scopes.
Accessibility and browser support
Native elements, names, relationships, focus, and keyboard behavior remain authoritative.
| Feature | Locked-engine evidence | When missing |
|---|---|---|
| Native baseline | Reviewed in the locked Chromium, Firefox, and WebKit evidence matrix. | No script is required. Without package CSS or an optional feature, content and native controls remain available in source order. |
| Exact fallback | The locked-engine matrix retains the documented native or static outcome. | No script is required. Without package CSS or an optional feature, content and native controls remain available in source order. |
Application ownership and API
The caller owns heading hierarchy and actions. Sticky and target decoration are optional presentation with normal-flow fallback.
Provenance
Catalogue identity navigation.section_header, adapted from
unscripted/ui commit bd8f403030c8d1f46804da6eda733fde7e908e63
under its MIT notice.
The documentation presentation is adapted locally; ShadcnUI's Phoenix API and native semantic contract remain authoritative.
Extract a caller-heading-preserving section composition with static or sticky presentation, target decoration, normal-flow fallback, and no scroll observation.