@chantelle/link

0.2.2 • Public • Published

Link

Installation

yarn add @chantelle/link

Usage

First, include the CSS in your HTML:

<link rel="stylesheet" href="node_modules/@chantelle/link/dist/styles.css">

Note: you can import the CSS directly into your project if your bundler supports it:

 import '@chantelle/link/dist/styles.css';

React Component

import Link from '@chantelle/link';

ReactDOM.render(
  <Link url='https://cl.studio'>Example Link</Link>,
  container
);

CSS API

To use the Link component, add the .pl-link to the <a> element to apply the styles.

Appearances

<a class="pl-link pl-link--primary">Primary (default) link</a>
<a class="pl-link pl-link--secondary">Secondary link</a>

Readme

Keywords

none

Package Sidebar

Install

npm i @chantelle/link

Weekly Downloads

7

Version

0.2.2

License

MIT

Unpacked Size

6.09 kB

Total Files

7

Last publish

Collaborators

  • ctsd
  • blackakula