BackButton
A button used to go back to the previous screen. To be used with the
Bar
component. Adapts to the space available.import { BackButton, Bar, Main } from '@aragon/ui'
function App() {
return (
<Main>
<Bar primary={<BackButton onClick={() => goBack()} />} />
</Main>
)
}

Additional props will get passed to the internalButtonBase
component.
TYPE | DEFAULT VALUE |
---|---|
String | "Back" |
The label displayed on the button.
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 6mo ago