UNPKG

metadata-based-explorer1

Version:
25 lines (19 loc) 459 B
### Examples ``` <LinkButton href='#'> A link that looks like a button </LinkButton> ``` You can pass a custom component to be used instead of the default `a` tag: ``` // Could be a React-Router link: // import { Link as RouterLink } from 'react-router' const RouterLink = ({ to, children, ...rest }) => ( <a { ...rest } href={ to }> {children} </a> ); <LinkButton to='/somewhere' component={RouterLink}> A link </LinkButton> ```