Skip to content

Latest commit

 

History

History
 
 

bpk-component-link

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

bpk-component-link

Backpack link component.

Installation

npm install bpk-component-link --save-dev

Usage

import React from 'react';
import BpkLink, { BpkButtonLink } from 'bpk-component-link';

export default () => (
  <div>
    Links can be both <BpkLink href="http://www.skyscanner.net/">anchor tags</BpkLink> as well
    as <BpkButtonLink onClick={() => console.log('link button click!')}>button tags</BpkButtonLink>.
  </div>
)

Props

BpkLink

Property PropType Required Default Value
children - true -
href string true -
onClick func false null
blank bool false false
white bool false false

BpkLinkButton

Property PropType Required Default Value
children - true -
onClick func true -
white bool false false

Theme props

For both BpkLink and BpkLinkButton the following theme attributes are required.

  • linkColor
  • linkHoverColor
  • linkActiveColor
  • linkVisitedColor