ember-frost-link

2.0.1 • Public • Published

This repo has been ported to ember-frost-core - no more PRs will be accepted.

ember-frost-link
Travis Coveralls NPM

Installation

ember install ember-frost-link

API

Attribute Type Value Description
disabled boolean false default: Click to redirect from one route to another
true 🚫 Can't click this! 🎶
size string small The smallest link you ever did see
medium default: Not quite as small as small, but not very big either
large Now that's what I call a link!
priority string primary Call-to-action ☎️
secondary default: Run of the mill, garden variety
tertiary Low-key, subdued

Examples

Primary small

{{#frost-link
  'routename'
  priority='primary'
  size='small'
}}
  <div class='text'>Primary</div>
{{/frost-link}}

Font based on size

{{#frost-link
  'routename'
  priority='tertiary'
}}
  <div class='text'>Tertiary</div>
{{/frost-link}}

Development

Setup

git clone git@github.com:ciena-frost/ember-frost-link.git
cd ember-frost-link
npm install && bower install

Development Server

A dummy application for development is available under ember-frost-link/tests/dummy. To run the server run ember server (or npm start) from the root of the repository and visit the app at http://localhost:4200.

Testing

Run npm test from the root of the project to run linting checks as well as execute the test suite and output code coverage.

Readme

Keywords

Package Sidebar

Install

npm i ember-frost-link

Weekly Downloads

16

Version

2.0.1

License

MIT

Last publish

Collaborators

  • ciena