Genesis
@beta

NavBarSaveButton

Nav-bar sub-primitives — escape hatches for `<Stack.Screen>` `headerLeft`, `headerRight`, and custom title view. Use these when the named-prop slots on a layout aren't enough — e.g., a screen needs a save button on the right that's wired to dirty-state, or a search bar replaces the title on a results screen. Pass directly into `headerLeft={() => <NavBarSearchBar ... />}` or compose into a custom `headerTitle={() => <NavBarTitle ... />}` slot.

packages/ui-native/src/layouts/nav-bar.tsx

Import
Subpath export: @marktiderman/genesis-ui-native
import { NavBarSaveButton } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NavBarSaveButton

PropTypeDefaultDescription
classNamestring—
destructiveboolean—When true, render label in destructive tone.
disabledboolean—When true, the button is muted and not pressable. Use this for clean / pristine forms.
labelstringSaveVisible label. Default `"Save"`.
loadingboolean—When true, label switches to a busy indicator and presses are blocked.
onPress(() => void)—Press handler. Disabled when not provided OR when `disabled`/`loading`.
testIDstring—

NavBarTitle

PropTypeDefaultDescription
title*string—Title text.
classNamestring—
onPress(() => void)—Optional press handler — turns the title row into a tap target (e.g., reveal a picker).
subtitlestring—Optional smaller subtitle line under the title.
testIDstring—

NavBarSearchBar

Inline search input meant to occupy the title slot on a search results screen. For a sticky search-below-the-header pattern, prefer the standalone <NativeSearchBar> primitive.

PropTypeDefaultDescription
onChangeText*(next: string) => void—
value*string—
classNamestring—
clearablebooleantrueRender a clear (X) button when value is non-empty. Default true.
onSubmit(() => void)—Called when the user submits the search (return key).
placeholderstringSearch
testIDstring—