App Bar
stableA top application bar.
Basic usage
App title
Examples
Toolbar composition
Place navigation, title and actions inside the app bar.
Structyl
Sticky app bar
Use position for page-level behavior, then override to relative only in embedded previews.
Color and elevation
AppBar supports MUI-like position, color, elevation and square props.
Primary app bar
Features
- Static, sticky or fixed positioning.
- Backdrop-blurred surface.
Installation
bash
pnpm dlx structyl add app-barAPI Reference
AppBar
Top app shell surface.
| Prop | Type | Default |
|---|---|---|
| position | 'static' | 'sticky' | 'fixed' | 'absolute' | 'relative'Positioning mode. | 'static' |
| color | 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted' | 'transparent'Surface color. | 'default' |
| elevation | 0 | 1 | 2 | 3 | 4 | 5 | 6Shadow depth. | 0 |
| square | booleanRemove rounded corners. | true |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |