Search
Search for a page

Navigation Stack

The core shell scaffolding of the system. Implements Apple's signature dynamic title transition, shifting titles to the header as users scroll.

bunx shadcn-svelte@latest add https://ui.grgurevic.click/r/navigation-stack.json

Usage

The basic setup for a navigation stack with a sticky header and transition effects.

Back
Profile Settings

Profile Settings

Simulated view of the Navigation Stack page structure.

Best practices

The best practices when using navigation stacks.

  • Ensure the header title exactly matches the large title for consistent scroll transitions.
  • Always place a back logoButton or dismiss action in the leading header slot.
  • Avoid putting dense, multiline descriptions in the sticky header bar.
  • For content that slides in from the edge rather than pushing a new view, prefer a logoSheet instead.

Components & Props

Navigation Stack sub-components and parameters.

Component / PropType / RoleDefaultDescription
NavigationStack.RootContext coordinator-Sets up reactive context coordinates (`NavigationStackState`) that bridge headers and large titles across layouts.
NavigationStack.HeaderSticky header bar-The sticky navigation header featuring a centered title and custom layout slots.
NavigationStack.LargeTitleScroll title block-Large title block positioned inside standard scroll streams. Registers itself automatically with surrounding parent root providers.
titlestringundefinedSmall title text fading in on scrolls.
Previous List
Give feedback
Next Select