We’re excited to announce Bit’s new home at bit.dev!Learn more

routed-button

v2.6.5arrow_drop_down
v2.6.5
v2.5.5
STATUS
Passing
DOWNLOADS
57
LICENSE
Apache 2.0
VISIBILITY
Public
PUBLISHED
3 weeks ago
subject
A button with support for React Router.
1 contributor
Like
Use routed-button in your project ?
Copied
npm i @bit/grommet.grommet.routed-button
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
modified
chevron_left
chevron_right

RoutedButton

A button with support for React Router.

Usage

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