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 no dots
inset
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
| Slot | Content |
|---|---|
| default | the body |
actions | controls right of the title, such as an .anim-replay button |
tabs | a row of .talos-window__tab under the bar |
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
title | string | none | text in the title bar |
status | "nominal" | "warning" | "critical" | none | band of the first dot; also sets aria-label="Status: …" on the dots |
dots | number | 3 | number 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 |
class | string | none | extra classes on the <section> |
...rest | HTMLAttributes<"section"> | none | forwarded to the <section> |