grommet
Version:
focus on the essential experience
35 lines (24 loc) • 805 B
Markdown
## RoutedButton
A button with support for React Router.
[](https://storybook.grommet.io/?selectedKind=RoutedButton&full=0&addons=0&stories=1&panelRight=0) [](https://codesandbox.io/s/github/grommet/grommet-sandbox?initialpath=routedbutton&module=%2Fsrc%2FRoutedButton.js)
## Usage
```javascript
import { RoutedButton } from 'grommet';
<RoutedButton primary={true} path='/documentation' />
```
## Properties
**path**
Required. Indicates the path to be used for react-router link.
```
string
```
**method**
Indicates whether the browser history should be appended to or replaced. Defaults to `push`.
```
push
replace
```
## Intrinsic element
```
button
```