Navigation
GlassAppBar
A top application bar with glass blur and leading, content and trailing slots.
<script>
import { GlassAppBar, IconButton } from "@codeatlasdev/ui";
</script>
<GlassAppBar>
My Application
{#snippet trailing()}<IconButton aria-label="Search">...</IconButton>{/snippet}
</GlassAppBar>
Renders a <header>. Icon-only buttons inside it need an aria-label. Inside AppShell use the shell’s own header; this bar is for standalone pages.
Default
Content in the middle and actions in the trailing slot.
Reference #151 · Pick in the gallery
Code
With leading icon
A menu button in the leading slot.
Reference #152 · Pick in the gallery
Code
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | Snippet | – | Main content, for example the title. |
leading | Snippet | – | Content at the start, usually a menu button. |
trailing | Snippet | – | Content at the end, usually actions and an avatar. |
class | string | '' | Extra CSS classes. |