Skip to content

Component gallery

  1. Primitives
  2. Corner windows

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Primitives · 9 of 16

Corner windows

Pinned to the viewport's corner on a page; inline here. A popover on wide screens, a bottom sheet on narrow ones.

packages/ui/src/astro/ui/corner-window.astro3 stories

Preview settings
Width
Preview width
Stage
Stage
message
Props 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>
Open corner-window/message on its own

Chat with Greg

Greg Heffley
GH

Hi! I'm Greg.

Greg Heffley
GH

Need a hand with anything?

content
Props 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>
Open corner-window/content on its own

Help

Any content goes here: a note, some links or a short form.

start
Props 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>
Open corner-window/start on its own

Settings

Lines up with the button's start edge, for the bottom-left corner.

PreviousDropdownsNextDialogs