1.0.4 • Published 1 year 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
1 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.3
1 year ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.10
2 years ago
0.1.11
2 years ago
0.1.8
2 years ago
0.1.9
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.4
2 years ago
0.1.5
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago