Container

Layout & Structure
stable

Page-level structural wrapper with responsive max-width breakpoints. Supports fluid and fullscreen modes.

Aperçu

Rendu de l’aperçu en cours…

default

Rendu de l’aperçu en cours…

fluid

Structure

Anatomie

Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.

Anatomy of OrigamContainerSchematic of Container with root wrapper and content slot. max-width breakpoint zone 1 origam-container viewport
Anatomy of <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.

fluid
boolean
false
When true, max-width is set to 100% — the container spans the full viewport width at all breakpoints.
fullscreen
boolean
false
When true, the container takes 100% width and height with display:flex and align-items:center — useful for centred full-viewport sections.
id
string
class
string | Array<string> | object
style
string | Array<string> | object | StyleValue
tag
string
'div'
HTML element rendered at the root. Defaults to <div>.
height
number | string
maxHeight
number | string
maxWidth
number | string
minHeight
number | string
minWidth
number | string
width
number | string
padding
boolean | number | string
paddingTop
boolean | number | string
paddingLeft
boolean | number | string
paddingBottom
boolean | number | string
paddingRight
boolean | number | string
paddingBlock
boolean | number | string
paddingInline
boolean | number | string
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string
margin
boolean | number | string
marginTop
boolean | number | string
marginLeft
boolean | number | string
marginBottom
boolean | number | string
marginRight
boolean | number | string
marginBlock
boolean | number | string
marginInline
boolean | number | string
marginInlineStart
boolean | number | string
marginInlineEnd
boolean | number | string
marginBlockStart
boolean | number | string
marginBlockEnd
boolean | number | string
border
boolean | number | string | TDirectionBoth | Array<TDirectionBoth>
borderTop
boolean | number | string
borderLeft
boolean | number | string
borderBottom
boolean | number | string
borderRight
boolean | number | string
borderBlock
boolean | number | string
borderInline
boolean | number | string
borderInlineStart
boolean | number | string
borderInlineEnd
boolean | number | string
borderBlockStart
boolean | number | string
borderBlockEnd
boolean | number | string
borderColor
string
borderStyle
string
borderTopColor
TColor
borderRightColor
TColor
borderBottomColor
TColor
borderLeftColor
TColor
borderInlineStartColor
TColor
borderInlineEndColor
TColor
borderBlockStartColor
TColor
borderBlockEndColor
TColor

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

vue

Fluid container

vue

Fullscreen hero

vue

Écosystème

Famille

Composants du même dossier qui partagent les conventions et se composent souvent ensemble.