Skip to content

Navigation

AppBar

Sticky chrome that stays transparent until you scroll, with an optional collapsing large title.

AppBar
import { AppBar } from '@anomalia/ui';

Notes

  • The compact title only fades in once the large one is mostly gone — a crossfade at 50% shows both at once.
  • Scroll is read with a passive listener and safe-area insets are respected for PWAs.

Examples

API

PropTypeDefaultDescription
titlestringCompact (and large) title text.
largeTitlebooleanfalseCollapsing iOS-style large title.
glassbooleantrueFrosted background once scrolled.
scrollElementHTMLElement | nullScroll container to watch (defaults to window).

Every component also forwards the native attributes of its root element, plus class, so anything not listed here still works.