Container
Page-level structural wrapper with responsive max-width breakpoints. Supports fluid and fullscreen modes.
Preview
Rendering the live preview…
defaultRendering the live preview…
fluidStructure
Anatomy
Visual breakdown of the component's internal structure with BEM class call-outs.
<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
All props accepted by this component, with their type, default value and 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
Content slots exposed by this component.
- #default
- Container content. Typically an OrigamRow wrapping OrigamCol elements.
API
Exposed members
Properties and methods accessible via template ref (defineExpose). Use them for programmatic control.
- <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.
Customisation
CSS variables
CSS custom properties exposed by this component. Override them to customise the component without losing theme compatibility.
- 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
Accessibility
ARIA roles, keyboard navigation and focus management. Sourced from the real component template.
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.
Interactive
Playground
Edit props live and see the component update in real time. The generated code snippet updates as you change values.
Rendering the live preview…
Usage
Examples
Ready-to-paste code snippets for your templates.
Basic container
Fluid container
Fullscreen hero
Ecosystem
Family
Components from the same folder that share conventions and often compose together.