Search…
BackButton
A button used to go back to the previous screen. To be used with the Bar component. Adapts to the space available.

Usage

import { BackButton, Bar, Main } from '@aragon/ui'
function App() {
return (
<Main>
<Bar primary={<BackButton onClick={() => goBack()} />} />
</Main>
)
}

Demonstration

Props

Additional props will get passed to the internal ButtonBase component.

label

TYPE
DEFAULT VALUE
String
"Back"
The label displayed on the button.

onClick

TYPE
DEFAULT VALUE
Function: () -> *
None
Gets called when the user activates the button, by either clicking on it or using the enter key of the keyboard.
Last modified 2mo ago
Copy link
On this page
Usage
Demonstration
Props