#189
Stretch
A scrolling area with a sticky bar whose Back and Continue buttons stretch across the width.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Stretch" pattern (@codeatlasdev/ui demo #189, layout/sticky-actions) in my app.
Call get_demo({ ids: ["#189"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Wizard and checkout steps where a full-width action bar stays visible while the content scrolls.
Keep these library parts, with the props and tokens the demo uses:
- StickyActions, Button from "@codeatlasdev/ui"
Behaviour to keep:
- `<StickyActions align="stretch">` holds `<Button variant="ghost">Back</Button>` and `<Button variant="filled">Continue</Button>`
- Content is a single `<div class="filler">Long content…</div>` taller than the scroller
- Scroller uses `max-height: 280px` and `overflow-y: auto`
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- StickyActions
@codeatlasdev/ui - Button
@codeatlasdev/ui
How it is built
- `<StickyActions align="stretch">` holds `<Button variant="ghost">Back</Button>` and `<Button variant="filled">Continue</Button>`
- Content is a single `<div class="filler">Long content…</div>` taller than the scroller
- Scroller uses `max-height: 280px` and `overflow-y: auto`
Related
Loading source.