Attribute | Type | Value | Description |
---|---|---|---|
design |
string |
inline |
custom link styling for inline text, opens content in the same tab. Should not be used with priority and size . |
info-bar |
custom link styling for the info-bar context, opens content in the same tab. Requires icon to be specified. Should not be used with priority and size . |
||
disabled |
boolean |
false |
default - basic link |
true |
disabled link | ||
hook |
string |
<unique-name> |
name used for testing with ember-hook |
icon |
string |
<icon-name> |
the name of a frost-icon |
onClick |
closure-action |
<closure-action> |
triggers associated action when the link is clicked prior to transition |
options |
object |
{<attributes>} |
property object used to spread the attributes to the top level of the component with ember-spread. |
priority |
string |
primary |
primary link - opens content in a new tab |
secondary |
secondary link - opens content in the same tab | ||
routeNames |
array |
[...] |
list of the route names to open in new tabs on click (only available for non disabled primary link). |
routes |
array |
[...] |
list of the routes to open in new tabs on click (only available for non disabled primary link). |
size |
string |
small |
small size link |
medium |
medium size link | ||
large |
large size link | ||
tabindex |
string |
<tabindex-value> |
the tabindex value |
The link component is accessible using ember-hook:
- Top level hook -
$hook('<hook-name>')
The link component use ember-spread to spread
a property object against the top level of the component.