Container
A generic block-level content container.
A generic block-level content container.
Container holds arbitrary block-level content.
<div class="container"><p>Container holds arbitrary block-level content.</p></div><Container>
<p>Content</p>
</Container>
// In your Svelte component:
import Container from "lily-design-system-svelte-headless/components/Container/Container.svelte";
<Container>
<!-- content -->
</Container>
<Container>
<p>Content</p>
</Container>
className: string (optional) — extra CSS classes appended to containerchildren: slot — content rendered inside the containercontainer-with-fixed-width instead.container-with-fluid-width instead.<header>, <main>, <nav>, <footer>, or <section> (or the corresponding Lily components) when the content has a clear role.This headless component renders semantic HTML. The consumer provides all visual styling. No CSS, animations, or layout are included — the consumer composes those.
The component renders with .container as the root class. No default styles are included.
container-with-fixed-width — a centered content wrapper with a fixed max-width breakpointcontainer-with-fluid-width — a full-width content wrapper with horizontal padding.container in css-style-sheet-template.css<div> element with class containerclassName for additional CSS classeschildren slot for arbitrary contentrestProps onto the <div> for consumer customizationGenerated from this component's canonical metadata — the machine-checked source the implementations are held to.
className: string (optional) — extra CSS classes appended to containerchildren: slot — content rendered inside the container