Container
Page-level structural wrapper with responsive max-width breakpoints. Supports fluid and fullscreen modes.
Aperçu
Rendu de l’aperçu en cours…
defaultRendu de l’aperçu en cours…
fluidStructure
Anatomie
Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.
<origam-container> — 1 root element with responsive max-width and a default slot. The outer dashed rectangle represents the viewport.- 1.origam-container
- Root element (defaults to
<div>). Applies horizontal auto margins and responsive max-width steps. Modifiers:--fluid(max-width: 100%),--fullscreen(100vh flex centred).
API
Props
Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.
- fluidbooleanfalse
- When true, max-width is set to 100% — the container spans the full viewport width at all breakpoints.
- fullscreenbooleanfalse
- When true, the container takes 100% width and height with display:flex and align-items:center — useful for centred full-viewport sections.
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
- tagstring'div'
- HTML element rendered at the root. Defaults to <div>.
- heightnumber | string
- maxHeightnumber | string
- maxWidthnumber | string
- minHeightnumber | string
- minWidthnumber | string
- widthnumber | string
- paddingboolean | number | string
- paddingTopboolean | number | string
- paddingLeftboolean | number | string
- paddingBottomboolean | number | string
- paddingRightboolean | number | string
- paddingBlockboolean | number | string
- paddingInlineboolean | number | string
- paddingInlineStartboolean | number | string
- paddingInlineEndboolean | number | string
- paddingBlockStartboolean | number | string
- paddingBlockEndboolean | number | string
- marginboolean | number | string
- marginTopboolean | number | string
- marginLeftboolean | number | string
- marginBottomboolean | number | string
- marginRightboolean | number | string
- marginBlockboolean | number | string
- marginInlineboolean | number | string
- marginInlineStartboolean | number | string
- marginInlineEndboolean | number | string
- marginBlockStartboolean | number | string
- marginBlockEndboolean | number | string
- borderboolean | number | string | TDirectionBoth | Array<TDirectionBoth>
- borderTopboolean | number | string
- borderLeftboolean | number | string
- borderBottomboolean | number | string
- borderRightboolean | number | string
- borderBlockboolean | number | string
- borderInlineboolean | number | string
- borderInlineStartboolean | number | string
- borderInlineEndboolean | number | string
- borderBlockStartboolean | number | string
- borderBlockEndboolean | number | string
- borderColorstring
- borderStylestring
- borderTopColorTColor
- borderRightColorTColor
- borderBottomColorTColor
- borderLeftColorTColor
- borderInlineStartColorTColor
- borderInlineEndColorTColor
- borderBlockStartColorTColor
- borderBlockEndColorTColor
API
Slots
Emplacements de contenu exposés par ce composant.
- #default
- Container content. Typically an OrigamRow wrapping OrigamCol elements.
API
Membres exposés
Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.
- <T extends object>(props: T, exclude?: string[]) => Partial<T>
- Utility to forward a filtered subset of props to a child component.
- Ref<string>
- Reactive CSS string generated by useStyle.
- string
- Unique style-sheet ID for this instance.
- () => void
- Injects the computed style sheet into the document.
- () => void
- Removes the injected style sheet.
- Ref<boolean>
- True once the style sheet has been injected into the DOM.
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.
- Container max-width. Overridden per media breakpoint: 900px (md), 1200px (lg), 1800px (xl), 2400px (xxl).
- Horizontal inner padding — start side.
- Horizontal inner padding — end side.
- Left auto margin (centres the container horizontally).
- Right auto margin (centres the container horizontally).
Inclusion
Accessibilité
Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.
Notes
- Container renders as <div> by default. Use the tag prop to set a semantic landmark element (e.g. <main>, <section>) when appropriate.
- Container applies RTL-aware classes via useRtl(). Padding and margin are expressed as logical properties (inline-start/end) so RTL layouts work without extra CSS.
Interactif
Playground
Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.
Rendu de l’aperçu en cours…
Usage
Exemples
Extraits de code prêts à coller dans vos templates.
Basic container
Fluid container
Fullscreen hero
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.