1.0.4 • Published 2 years ago
@vygruppen/spor-link-react v1.0.4
Link (React)
Easy to use links in a few different designs
Installation
$ npm install @vygruppen/spor-link-react
Usage
import { Link } from "@vygruppen/spor-link-react";
Basic usage is just like a good ol' <a />
tag:
<Link href="https://vy.no">Go to Vy</Link>
You can specify a variant too - primary
, secondary
or tertiary
:
<Link href="https://vy.no" variant="secondary">
Go to Vy
</Link>
If you specify an external URL, or if you pass the isExternal
flag, you will get a "link out" icon.
<Link href="https://vy.no">Go to Vy</Link>
If you're passing an external link, but you want it to look like you didn't, you can override this behavior by specifying isExternal={false}
. But don't do that.
Development
Please refer to the root readme for development notes.
1.0.4
2 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.3
3 years ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.8
3 years ago
0.1.9
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.4
3 years ago
0.1.5
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago