#910
Configured split
A split dialog sized 66vw by 88svh with a 2fr/3fr column ratio that goes full screen under 600px: a map column beside a details column with a Close button.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Configured split" pattern (@codeatlasdev/ui demo #910, feedback/dialog) in my app.
Call get_demo({ ids: ["#910"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Wide detail dialogs (map + details, media + form) that need their own box and column ratio and must fill the screen on phones.
Keep these library parts, with the props and tokens the demo uses:
- Dialog, Button, Stack from "@codeatlasdev/ui"
Behaviour to keep:
- `<Dialog` with `size="split"`, `chromeless` and `title="Lead details"`
- `splitColumns="2fr 3fr"` and `fullscreenBelow="sm"`
- `splitSize={{ width: 'min(66vw, 80rem)', height: 'min(88svh, 56rem)' }}`
- Two direct children: `<div class="map">` labelled Map and `<div class="details">` with a name and a filled Close `<Button variant="filled" onclick={() => (open = false)}>`
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
How it is built
- `<Dialog` with `size="split"`, `chromeless` and `title="Lead details"`
- `splitColumns="2fr 3fr"` and `fullscreenBelow="sm"`
- `splitSize={{ width: 'min(66vw, 80rem)', height: 'min(88svh, 56rem)' }}`
- Two direct children: `<div class="map">` labelled Map and `<div class="details">` with a name and a filled Close `<Button variant="filled" onclick={() => (open = false)}>`
Related
Loading source.