diff --git a/apps/web-twig-demo/public/css/demo.css b/apps/web-twig-demo/public/css/demo.css
index 3fb97696b2..f0b2b6235b 100644
--- a/apps/web-twig-demo/public/css/demo.css
+++ b/apps/web-twig-demo/public/css/demo.css
@@ -35,11 +35,14 @@
.docs-Stack {
display: grid;
row-gap: 1rem;
+}
+
+.docs-Stack--start {
justify-items: start;
}
-.docs-Stack--fluid {
- justify-items: initial;
+.docs-Stack--stretch {
+ justify-items: stretch;
}
.docs-Box {
diff --git a/packages/web-twig/docs/components/DocsSection/DocsSection.twig b/packages/web-twig/docs/components/DocsSection/DocsSection.twig
index 4adae807c8..c3418b4219 100644
--- a/packages/web-twig/docs/components/DocsSection/DocsSection.twig
+++ b/packages/web-twig/docs/components/DocsSection/DocsSection.twig
@@ -1,6 +1,7 @@
{# API #}
{%- set props = props | default([]) -%}
-{%- set _hasFluidLayout = props.hasFluidLayout | default(false) -%}
+{%- set _hasStack = props.hasStack ?? true -%}
+{%- set _stackAlignment = props.stackAlignment | default('start') -%}
{%- set _tag = props.tag | default(null) -%}
{%- set _title = props.title -%}
@@ -8,12 +9,16 @@
{%- set _rootClassName = 'docs-Section' -%}
{%- set _headingClassName = 'docs-Heading' -%}
{%- set _stackClassName = 'docs-Stack' -%}
-{%- set _stackFluidClassName = _hasFluidLayout ? 'docs-Stack--fluid' : null -%}
+{%- set _stackAlignmentClassName = 'docs-Stack--' ~ _stackAlignment -%}
{# Miscellaneous #}
{%- set _styleProps = useStyleProps(props) -%}
{%- set _rootClassNames = [_rootClassName, _styleProps.className] -%}
-{%- set _stackClassNames = [_stackClassName, _stackFluidClassName] -%}
+{%- set _stackClassNames = [_stackClassName, _stackAlignmentClassName] -%}
+
+{%- set _renderedContent %}
+ {% block content %}{% endblock %}
+{% endset -%}