penguin-link
A simple link component for penguin.
Last updated 3 years ago by domachine .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install penguin-link 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.2                                ...           latest (3 years ago)

3 Versions

  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 20
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |