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

TYPEDEFAULT VALUE

String

"Back"

The label displayed on the button.

onClick

TYPEDEFAULT 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 updated