structyl

App Bar

stable

A 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.

Sticky page header

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-bar

API Reference

AppBar

Top app shell surface.

PropTypeDefault
position'static' | 'sticky' | 'fixed' | 'absolute' | 'relative'

Positioning mode.

'static'
color'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted' | 'transparent'

Surface color.

'default'
elevation0 | 1 | 2 | 3 | 4 | 5 | 6

Shadow depth.

0
squareboolean

Remove rounded corners.

true
classNamestring

Additional Tailwind classes merged with the component defaults.

App Bar | structyl