Section

Layout & Structure
stable

Semantic section layout container. Provides a flex-column surface with default padding, gap and background tokens. Currently in active development.

Structure

Anatomy

Visual breakdown of the component's internal structure with BEM class call-outs.

Anatomy of OrigamSectionSchematic of the Section component with 1 numbered part. #default slot 1
Anatomy of <origam-section> — the root block is a flex-column container with configurable background, padding and gap tokens.
1.origam-section
Root element. Flex-column, 100% width, background from --origam-section---background-color.

API

Props

All props accepted by this component, with their type, default value and description.

class
string
Additional CSS class forwarded to the root .origam-section div.
style
StyleValue
Inline style forwarded to the root element.

API

Slots

Content slots exposed by this component.

#default
Main section content.

Customisation

CSS variables

CSS custom properties exposed by this component. Override them to customise the component without losing theme compatibility.

Background color of the section surface.
Foreground text color of the section.
Internal padding of the section container.
Border-radius of the section surface.
Gap between child elements in the flex-column layout.

Inclusion

Accessibility

ARIA roles, keyboard navigation and focus management. Sourced from the real component template.

Notes

  • OrigamSection renders a <div class="origam-section"> by default. For full semantic correctness, consider wrapping with a native <section> or use an appropriate ARIA landmark role on the parent if needed.

Foundation

Design tokens

Excerpt from this component's token declarations — the --origam-<component>---<property> variables, declared in its hand-maintained token sheet with no build step.

Source
color
{color.surface.default}
Section background color.
color
{color.text.primary}
Section foreground text color.
dimension
{space.6}
Internal padding.
dimension
{radius.md}
Corner radius.
dimension
{space.4}
Gap between child elements.

Usage

Examples

Ready-to-paste code snippets for your templates.

Basic usage

vue