0.1.5 • Published 5 years ago
@redoute/link v0.1.5
name: Link menu: UI
route: /Link
import { Playground, Props } from 'docz' import { MemoryRouter as Router } from 'react-router-dom' import Link from '@redoute/link' import { Title1 } from '@redoute/titles'
Link
A Link is a styled component that can handle a internal or external redirect. If no destination we can use the component to handle a onClick action such as a button.
Style is coming from the theme and is applied the same on any of these cases. To custom a Link, you must wrap it with a parent.
The Redoute Link component returns either :
- a component Link from
react-router-domif used with propto, - a
<a href="">if used with prophref - a
<span>with same style if no props