<div class="demo-caption">The column of a page</div>
<div class="demo-page">
<div class="demo-page-bar"><ray-container size="sm"><ray-group justify="space-between"><strong>ray·blog</strong><ray-group gap="sm"><a href="#container">Posts</a><a href="#container">About</a></ray-group></ray-group></ray-container></div>
<ray-container size="sm">
<ray-stack gap="sm" class="demo-page-body">
<span class="demo-muted">October 8, 2026</span>
<strong class="demo-title">Shipping per-page modules</strong>
<p>Every docs page now loads only the components it shows. The column stays readable at any window width: ray-container size="sm" caps it at 720px and pads it on phones.</p>
</ray-stack>
</ray-container>
</div>
<div class="demo-caption">Sizes</div>
<div class="demo-containers">
<ray-container size="xs"><span class="demo-cell">xs · 540px</span></ray-container>
<ray-container size="sm"><span class="demo-cell">sm · 720px</span></ray-container>
<ray-container size="md"><span class="demo-cell">md · 960px (default)</span></ray-container>
<ray-container size="lg"><span class="demo-cell">lg · 1140px</span></ray-container>
<ray-container size="30rem" padding="xl"><span class="demo-cell">size="30rem" padding="xl"</span></ray-container>
<ray-container fluid><span class="demo-cell">fluid: the whole width, still padded</span></ray-container>
</div>
import { RayContainer, RayGroup, RayStack } from "@raylang/react";
export function ContainerExample() {
return (
<>
<div className="demo-caption">The column of a page</div>
<div className="demo-page">
<div className="demo-page-bar"><RayContainer size="sm"><RayGroup justify="space-between"><strong>ray·blog</strong><RayGroup gap="sm"><a href="#container">Posts</a><a href="#container">About</a></RayGroup></RayGroup></RayContainer></div>
<RayContainer size="sm">
<RayStack gap="sm" className="demo-page-body">
<span className="demo-muted">October 8, 2026</span>
<strong className="demo-title">Shipping per-page modules</strong>
<p>Every docs page now loads only the components it shows. The column stays readable at any window width: ray-container size="sm" caps it at 720px and pads it on phones.</p>
</RayStack>
</RayContainer>
</div>
<div className="demo-caption">Sizes</div>
<div className="demo-containers">
<RayContainer size="xs"><span className="demo-cell">xs · 540px</span></RayContainer>
<RayContainer size="sm"><span className="demo-cell">sm · 720px</span></RayContainer>
<RayContainer size="md"><span className="demo-cell">md · 960px (default)</span></RayContainer>
<RayContainer size="lg"><span className="demo-cell">lg · 1140px</span></RayContainer>
<RayContainer size="30rem" padding="xl"><span className="demo-cell">size="30rem" padding="xl"</span></RayContainer>
<RayContainer fluid><span className="demo-cell">fluid: the whole width, still padded</span></RayContainer>
</div>
</>
);
}
<template>
<div class="demo-caption">The column of a page</div>
<div class="demo-page">
<div class="demo-page-bar"><RayContainer size="sm"><RayGroup justify="space-between"><strong>ray·blog</strong><RayGroup gap="sm"><a href="#container">Posts</a><a href="#container">About</a></RayGroup></RayGroup></RayContainer></div>
<RayContainer size="sm">
<RayStack gap="sm" class="demo-page-body">
<span class="demo-muted">October 8, 2026</span>
<strong class="demo-title">Shipping per-page modules</strong>
<p>Every docs page now loads only the components it shows. The column stays readable at any window width: ray-container size="sm" caps it at 720px and pads it on phones.</p>
</RayStack>
</RayContainer>
</div>
<div class="demo-caption">Sizes</div>
<div class="demo-containers">
<RayContainer size="xs"><span class="demo-cell">xs · 540px</span></RayContainer>
<RayContainer size="sm"><span class="demo-cell">sm · 720px</span></RayContainer>
<RayContainer size="md"><span class="demo-cell">md · 960px (default)</span></RayContainer>
<RayContainer size="lg"><span class="demo-cell">lg · 1140px</span></RayContainer>
<RayContainer size="30rem" padding="xl"><span class="demo-cell">size="30rem" padding="xl"</span></RayContainer>
<RayContainer fluid><span class="demo-cell">fluid: the whole width, still padded</span></RayContainer>
</div>
</template>