@pubsweet/ui
Version:
React component library for use in pubsweet apps
14 lines (10 loc) • 324 B
Markdown
A styled link, that accepts both an internal URL (via `react-router`):
```jsx
import { Link } from '@pubsweet/ui'
;<Link to="/dashboard">Dashboard</Link>
```
Or an external URL, using a classic `a` tag:
```jsx
import { Link } from '@pubsweet/ui'
;<Link to="http://pubsweet.coko.foundation">Click here for docs</Link>
```