0.0.2 • Published 9 years ago
penguin-link v0.0.2
penguin-link
Installation
$ npm i -S penguin-linkThen 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.