Skip to content

Component gallery

  1. Primitives
  2. 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 · 11 of 16

Windows

One app's window: a plain titled section, or framed like a window manager shows it.

packages/ui/src/astro/ui/window.astro4 stories

Preview settings
Width
Preview width
Stage
Stage
plain
Props of plain
<Window id="story-window-plain" title="README" icon="lucide:file-text" path="~/README.md">
    <p>Hi, I'm Jesse. I write software, mostly for the web.</p><p>This is the plain…
</Window>
Open window/plain on its own

README

~/README.md

Hi, I'm Jesse. I write software, mostly for the web.

This is the plain view, a section under its title bar.

framed
Props of framed
<Window id="story-window-framed" title="README" icon="lucide:file-text" path="~/README.md" framed>
    <p>Hi, I'm Jesse. I write software, mostly for the web.</p><p>This is the frame…
</Window>
Open window/framed on its own

README

~/README.md

Hi, I'm Jesse. I write software, mostly for the web.

This is the framed view, with a border, a ruled bar and a shadow.

long-title
Props of long-title
<Window id="story-window-long-title" title="A rather long window title that wraps" icon="lucide:folder" path="~/projects/a/deeply/nested/folder/with-a-long-name.md" framed>
    <p>The title and the path wrap at narrow widths instead of overflowing.</p>
</Window>
Open window/long-title on its own

A rather long window title that wraps

~/projects/a/deeply/nested/folder/with-a-long-name.md

The title and the path wrap at narrow widths instead of overflowing.

scrolling
Props of scrolling
<Window id="story-window-scrolling" title="Notes" icon="lucide:file-text" path="~/notes.md" framed style="block-size: 14rem">
    <p>Paragraph 1. The body scrolls inside the frame when it's taller than the win…
</Window>
Open window/scrolling on its own

Notes

~/notes.md

Paragraph 1. The body scrolls inside the frame when it's taller than the window. Tab to it to see the focus ring, and scroll to see the fade at the bottom edge go.

Paragraph 2. The body scrolls inside the frame when it's taller than the window. Tab to it to see the focus ring, and scroll to see the fade at the bottom edge go.

Paragraph 3. The body scrolls inside the frame when it's taller than the window. Tab to it to see the focus ring, and scroll to see the fade at the bottom edge go.

Paragraph 4. The body scrolls inside the frame when it's taller than the window. Tab to it to see the focus ring, and scroll to see the fade at the bottom edge go.

Paragraph 5. The body scrolls inside the frame when it's taller than the window. Tab to it to see the focus ring, and scroll to see the fade at the bottom edge go.

Paragraph 6. The body scrolls inside the frame when it's taller than the window. Tab to it to see the focus ring, and scroll to see the fade at the bottom edge go.

PreviousDialogsNextTaskbar