Navigation Bar
An iPhone OS navigation bar: 44px blue-grey glossy bar with an embossed white title, a pointed back button and bar-button actions.
Installation
Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.
Without the namespace, install straight from the URL:
Usage
import {
NavigationBar,
NavigationBarAction,
NavigationBarBack,
NavigationBarTitle,
} from "@/components/ui/navigation-bar"<NavigationBar>
<NavigationBarBack onBack={() => router.back()}>Settings</NavigationBarBack>
<NavigationBarTitle>General</NavigationBarTitle>
<NavigationBarAction variant="chrome">Edit</NavigationBarAction>
</NavigationBar>API
Give NavigationBarBack a short label, as iPhone OS did: the title of the previous screen.