Link
Styles for text used to navigate between sections or pages.
Less mixin
This component has been implemented as a Less mixin, not a Vue component. This mixin must be imported separately in your Less styles. See below for usage information.
WARNING
Before importing the Link mixin, you must first import the design tokens. If you don't, you will get errors that look like variable @color-progressive is undefined
.
Demos
Standard link
Lorem ipsum dolor sic amet.
Underlined link
Lorem ipsum dolor sic amet.
Link with icon
Lorem ipsum dolor sic amet.
Red link
Lorem ipsum dolor sic amet.
Usage
Default usage
To use standard, underlined, and red link styles, apply the .cdx-mixin-link()
mixin to a link class or to all anchor elements. This will automatically apply underline styles to links with the .is-underlined
class, and red link styles to links with the .is-red-link
class.
With custom CSS selectors
Alternately, you can apply sub-mixins directly to your own CSS selectors. The sub-mixins are:
.cdx-mixin-link-base()
.cdx-mixin-link-underlined()
.cdx-mixin-link-red()