Section
Semantic section layout container. Provides a flex-column surface with default padding, gap and background tokens. Currently in active development.
Structure
Anatomie
Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.
<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
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- classstring
- Additional CSS class forwarded to the root .origam-section div.
- styleStyleValue
- Inline style forwarded to the root element.
API
Slots
Emplacements de contenu exposés par ce composant.
- #default
- Main section content.
Personnalisation
Variables CSS
Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.
- 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
Accessibilité
Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.
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.
Fondation
Design tokens
Extrait des tokens de ce composant — les variables --origam-<composant>---<propriété>, déclarées dans sa feuille de tokens tenue à la main, sans étape de build.
- 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
Exemples
Extraits de code prêts à coller dans vos templates.
Basic usage