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.

Top ↑

Props

The component accepts the following props:

Top ↑

onClick: React.MouseEventHandler< HTMLElement >

The callback called in response to a click event.

  • Required: No

Top ↑

path: string

The path of the screen to navigate to.

  • Required: Yes

Top ↑

Inherited props

NavigatorBackButton also inherits all of the Button props, except for href.