Toggle Sidebar B
AppearanceLight & dark mode D

Button Back

Smart back button. Uses browser history when available, otherwise navigates to a fallback destination derived from the current path. Bound to the B keyboard shortcut by default.

Default

Renders an arrow + Back label. Pressing B triggers it.

Replay preview

Variants

default for inline use, bordered for floating buttons, semiTransparent for over-image headers.

Replay preview

Custom trigger

Use the default scoped slot to render your own UI while keeping the navigation behaviour.

Replay preview

API Reference

ButtonBack

PropTypeDefaultDescription
destinationstringnullFallback path when history is empty. Falls back to the parent path when null.
showLabelbooleantrueShow or hide the Back label.
forceDestinationbooleanfalseAlways navigate to destination, ignoring history.
variant"default" | "bordered" | "semiTransparent""default"Visual style.
shortcutbooleantrueEnable the B keyboard shortcut.
SlotDescription
defaultScoped slot receives goBack handler for fully custom triggers.