Toolbar
Navigation & Chrome

Toolbar

Browser-style toolbar with nav buttons, URL bar, and a profile slot. Purely cosmetic chrome for mockups and demos.

Props

Toolbar extends HTMLAttributes<HTMLDivElement>.

ToolbarProps props
PropTypeDefaultDescription
hostReactNode—The host portion of the URL, displayed in bold.
pathReactNode—The path portion of the URL.
profileReactNode—Optional content rendered on the right side of the toolbar.
canGoForwardbooleanfalseEnables the forward navigation button.
canGoBackbooleantrueEnables the back navigation button.
onBack() => void—Click handler for the back button.
onForward() => void—Click handler for the forward button.
onReload() => void—Click handler for the reload button.

Examples

Toolbar
With forward disabled
ImportTSX
import { Toolbar } from "@solarius/onset";