layout.window.bar
The toolbar of a layout.window, drawn like a browser: back, forward and reload, the address, and its controls on the right
Layout intents
Example
<Layout intent="layout.window.bar">
…
</Layout>Choosing between neighbours
Find the row that describes your element, and use the intent on the right.
If it is
Use
The toolbar of a layout.window, drawn like a browser: back, forward and reload, the address, and its controls on the right
layout.window.barthis pageA row of controls for the content below it
layout.toolbarThe title bar of an example app
rather thanlayout.terminal.barlayout.window.barthis page
Connections
Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.
- Built from
For registry authors
Starter intents. These are the intents prongs add puts in your registry, shown in this site’s theme. Yours are your own registry.ts: rename, restyle and add to them, and see them with prongs add gallery.
What this intent is built from and its entry in components/prongs/registry.ts. You only need this to change how it looks or to add an intent like it.
How layout.window.bar resolves, and its definition
Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.
arrange.rowChildren in a wrapping row
flex flex-row flex-wrap items-center
layout.window.barThe toolbar of a layout.window, drawn like a browser: back, forward and reload, the address, and its controls on the right
relative flex-nowrap items-center gap-5 rounded-t-lg border-b border-surface-border px-4 py-2.5 text-surface-muted [&>svg]:size-4 [&>svg]:shrink-0 [&>:last-child]:ml-auto [&>button]:h-7 [&>button]:px-3 [&>button]:py-0 [&>button]:text-xs [&>button]:border [&>button]:border-surface-border [&>button[aria-pressed=false]]:bg-background [&>button[aria-pressed=false]]:text-foreground [&>button[aria-pressed=false]:hover]:bg-surface-hover
flex flex-row relative flex-nowrap items-center gap-5 rounded-t-lg border-b border-surface-border px-4 py-2.5 text-surface-muted [&>svg]:size-4 [&>svg]:shrink-0 [&>:last-child]:ml-auto [&>button]:h-7 [&>button]:px-3 [&>button]:py-0 [&>button]:text-xs [&>button]:border [&>button]:border-surface-border [&>button[aria-pressed=false]]:bg-background [&>button[aria-pressed=false]]:text-foreground [&>button[aria-pressed=false]:hover]:bg-surface-hover
'layout.window.bar': {
kind: 'semantic',
description: 'The toolbar of a layout.window, drawn like a browser: back, forward and reload, the address, and its controls on the right',
refs: ['arrange.row'],
binding: {
classes: 'relative flex-nowrap items-center gap-5 rounded-t-lg border-b border-surface-border px-4 py-2.5 text-surface-muted [&>svg]:size-4 [&>svg]:shrink-0 [&>:last-child]:ml-auto [&>button]:h-7 [&>button]:px-3 [&>button]:py-0 [&>button]:text-xs [&>button]:border [&>button]:border-surface-border [&>button[aria-pressed=false]]:bg-background [&>button[aria-pressed=false]]:text-foreground [&>button[aria-pressed=false]:hover]:bg-surface-hover',
},
notFor: [
{
context: 'a row of controls for the content below it',
instead: 'layout.toolbar',
},
],
},