Usage
Linkable-title
<linkable-title>
element is meant to be used like a heading element. You need to specify an id
attribute for it to know what to link to.
Default usage
I'm a heading and I can be linked
Custom icon
<!-- go nuts here --> link I'm linkable with custom icon (not a pretty one)
No icon
I'm another heading with no icon
You can use CSS variables to change the icon spacing
/* defaults */
Installation
linkable-title
is available in npm and CDN
CDN
add the script tags in your html and the component will get lazy loaded when it's used on the page.
Framework integration
Please refer to the StencilJS docs for instructions on how to integrate with your favourite JavaScript framework.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
noIcon |
no-icon |
If there's an icon to be displayed on hover/focus | boolean |
false |
tag |
tag |
HTML tag to be used for the content | string |
'h4' |