#086
Info
An informational dialog with rich text about how Dialog works and a single Got it action.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Info" pattern (@codeatlasdev/ui demo #086, feedback/dialog) in my app.
Call get_demo({ ids: ["#086"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Help, about or detail popups that only need to be read and dismissed.
Keep these library parts, with the props and tokens the demo uses:
- Dialog, Button from "@codeatlasdev/ui"
Behaviour to keep:
- `<Dialog bind:open title="About this component">` with no `size` prop
- Body is two `<p class="body">` paragraphs using `<strong>` and `<code>`
- `{#snippet actions()}` has one `<Button variant="filled"` labelled Got it
- Trigger is `<Button variant="outlined"` with an `<Info size={14} />` icon in `{#snippet leading()}`
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="About this component">` with no `size` prop
- Body is two `<p class="body">` paragraphs using `<strong>` and `<code>`
- `{#snippet actions()}` has one `<Button variant="filled"` labelled Got it
- Trigger is `<Button variant="outlined"` with an `<Info size={14} />` icon in `{#snippet leading()}`
Related
Loading source.