Astro components Window
// Window

Window

Astro wrapper for .talos-window chrome, a title bar with status dots over a body.

Window renders the window chrome: a <section class="talos-window talos-chamfer"> with a title bar (.talos-window__bar) over a body (.talos-window__body). The dots in the bar are monochrome decoration; status colours the first dot with a band and gives it an accessible label. The CSS lives in talos-window.css (in all.css); see the Window CSS page for the class reference.

Default

PREVIEW
deploy.sh
bun run build
build complete

Variants

PREVIEW
warning band

inset

no dots

flush

---
import Window from "@j_shelfwood/talos-ui/astro/Window.astro";
import Terminal from "@j_shelfwood/talos-ui/astro/Terminal.astro";
---
<Window title="deploy.sh" status="nominal">
  <button slot="actions" class="anim-replay">Replay</button>
  <Terminal lines={[{ type: "cmd", text: "bun run build" }]} />
</Window>

Slots

SlotContent
defaultthe body
actionscontrols right of the title, such as an .anim-replay button
tabsa row of .talos-window__tab under the bar

Props

PropTypeDefaultMeaning
titlestringnonetext in the title bar
status"nominal" | "warning" | "critical"noneband of the first dot; also sets aria-label="Status: …" on the dots
dotsnumber3number of dots before the title; 0 hides them (a status keeps at least one)
variant"default" | "inset" | "flush""default""inset" for a window nested in a panel; "flush" drops the chamfer frame
classstringnoneextra classes on the <section>
...restHTMLAttributes<"section">noneforwarded to the <section>