Corner windows
Pinned to the viewport's corner on a page; inline here. A popover on wide screens, a bottom sheet on narrow ones.
messageProps of message
<CornerWindow id="story-corner-window-message" label="Chat with Greg" inline>
<InteractiveMessage tree={{ messages: ["Hi! I'm Greg.", "Need a hand with anything?"], options: [{…}, {…}] }} author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} />
</CornerWindow>Chat with Greg
contentProps of content
<CornerWindow id="story-corner-window-content" label="Help" icon="lucide:circle-help" variant="outline" tone="neutral" inline>
<p>Any content goes here: a note, some links or a short form.</p>
</CornerWindow>Help
Any content goes here: a note, some links or a short form.
startProps of start
<CornerWindow id="story-corner-window-start" label="Settings" icon="lucide:settings" corner="start" tone="secondary" inline>
<p>Lines up with the button's start edge, for the bottom-left corner.</p>
</CornerWindow>Settings
Lines up with the button's start edge, for the bottom-left corner.