Skip to main content

<st-section>

JSON type: Section

A page band that holds other content: sets the background, the spacing above and below, and the content width, with an optional eyebrow/title/subtitle heading over its slotted children. Use it to give a run of components one dark or tinted backdrop and a consistent vertical rhythm, the way enterprise marketing pages stack full-width sections.

Usage​

import '@sankhyatronics/sankhya-cms/section'; // registers <st-section>

Properties​

PropertyAttributeTypeDefaultDescription
eyebroweyebrowstring''
titletitlestring''
subtitlesubtitlestring''
backgroundbackground'default' | 'subtle' | 'dark' | 'accent' | 'transparent''default'default (page surface), subtle, dark, accent or transparent.
invertedinvertedbooleanfalsePuts the section on the dark band (--st-cms-band-dark-bg), like background="dark"; the band follows the theme. Same name as on the other components.
spacingAbovespacing-above'none' | 's' | 'm' | 'l' | 'xl' | 'xxl''m'Space above the content: none, s, m (default), l, xl or xxl.
spacingBelowspacing-below'none' | 's' | 'm' | 'l' | 'xl' | 'xxl''m'Space below the content: none, s, m (default), l, xl or xxl.
widthwidth'contained' | 'narrow' | 'full''contained'contained (default, the page container width), narrow (reading width) or full (edge to edge).
columnscolumns1 | 21Columns for the slotted children: 1 (default, stacked) or 2 (two equal columns, stacked again below 720px).
textAlignmenttext-alignment'left' | 'center''left'Alignment of the heading.

Slots​

SlotDescription
(default)The section's content.

See the live examples in Storybook.