#083
Chromeless
A medium dialog with the chromeless prop, so the content fills the panel edge to edge with no header or padding.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Chromeless" pattern (@codeatlasdev/ui demo #083, feedback/dialog) in my app.
Call get_demo({ ids: ["#083"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Previews and media viewers where the content supplies its own layout and close control.
Keep these library parts, with the props and tokens the demo uses:
- Dialog, Button from "@codeatlasdev/ui"
Behaviour to keep:
- `<Dialog bind:open title="Preview" size="md" chromeless>`
- Body is a `<div class="media">` with a paragraph and a `<Button variant="filled"` labelled Close
- Close button runs `onclick={() => (open = false)}`
- Trigger is `<Button variant="outlined"` labelled Open chromeless
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 bind:open title="Preview" size="md" chromeless>`
- Body is a `<div class="media">` with a paragraph and a `<Button variant="filled"` labelled Close
- Close button runs `onclick={() => (open = false)}`
- Trigger is `<Button variant="outlined"` labelled Open chromeless
Related
Loading source.