NavigatorBackButton
Edit
This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
The NavigatorBackButton
component can be used to navigate to a screen and should be used in combination with the NavigatorProvider
, the NavigatorScreen
and the NavigatorButton
components (or the useNavigator
hook).
Usage
Refer to the NavigatorProvider
component for a usage example.
Props
The component accepts the following props:
onClick
: React.MouseEventHandler< HTMLElement >
The callback called in response to a click
event.
- Required: No
path
: string
The path of the screen to navigate to.
- Required: Yes
Inherited props
NavigatorBackButton
also inherits all of the Button
props, except for href
.