#180
Container and Section
A Container and Section holding a Stack of two plan cards, showing the page-level layout primitives.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Container and Section" pattern (@codeatlasdev/ui demo #180, layout/layout-primitives) in my app.
Call get_demo({ ids: ["#180"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Structuring a marketing or settings page with a centered container, a labelled section and stacked cards.
Keep these library parts, with the props and tokens the demo uses:
- Container, Section, Stack, Card from "@codeatlasdev/ui"
Behaviour to keep:
- `<Container size="md">` wraps `<Section size="1" aria-label="Plans">`
- `<Stack gap="4">` holds 2 cards with `material="solid"` and `headingLevel={3}`
- Cards are `title="Starter"` (Up to 3 projects.) and `title="Team"` (Unlimited projects and roles.)
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Container
@codeatlasdev/ui - Section
@codeatlasdev/ui - Stack
@codeatlasdev/ui - Card
@codeatlasdev/ui
How it is built
- `<Container size="md">` wraps `<Section size="1" aria-label="Plans">`
- `<Stack gap="4">` holds 2 cards with `material="solid"` and `headingLevel={3}`
- Cards are `title="Starter"` (Up to 3 projects.) and `title="Team"` (Unlimited projects and roles.)
Related
Loading source.