0.0.2 • Published 7 years ago

penguin-link v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

penguin-link

Installation

$ npm i -S penguin-link

Then edit your package.json file to include the component.

{
  "penguin": {
    "components": {
      "Link": "penguin-link"
    }
  }
}

Usage

<a data-component='Link' data-props='{"href":"/mypage"}'>
  My page
</a>

This component adds the current language to your links. /mypage is converted to /<current-language>/mypage.

Props

  • href - The link-target.