KbqLink is a component that connects web pages or acts as a lighter alternative to a button.
The size attribute sets the size of the link, its typography and the gaps to its icons.
The underline attribute sets when the link text is underlined. By default a link is always underlined, and a pseudo link only on hover.
The disabled attribute makes the link inactive. It keeps its address, but cannot be followed.
The useVisited attribute colors visited links. It is useful on collection pages, such as article roundups and reading lists, where the color marks reading progress.
A pseudo link looks like a link, but acts as a button, performing an action without leaving the page. Use it for an action inside text.
Mark an icon before the text with kbqLinkPrefix and an icon after the text with kbqLinkSuffix. The icon is within the click area, but is not underlined.
A long link wraps like plain text, and every line is underlined.
I fully agree with the terms of the license agreement
Put the preposition that belongs to the link inside it. Put the period that ends the sentence in an element with kbqLinkSuffix, so that it takes the link color, but is not underlined.
Learn more about scan reports.
The external attribute adds the icon to a link to an external page or to a link that opens in a new tab. It does not open the page in a separate tab itself, so add the target="_blank" attribute for that.
When a link opens another application, name the application in the link text. Instead of the icon, the application logo can be shown with kbqLinkSuffix.
The print attribute adds the link address after its text when the page is printed, without the protocol and www.. To print something else, pass the text to the attribute.
kbqLinkOptionsProvider sets the link defaults for the whole application or for one component. A value set on the link itself takes precedence.
bootstrapApplication(AppComponent, { providers: [kbqLinkOptionsProvider({ size: 'compact', useVisited: true })] });
Key | Action |
|---|---|
| โ | Follow the link |
| Space \ โ | Press a pseudo link |
<a> tag, so that the address can be copied and the page opened in a new tab from the context menu.