Skip to content
Link text
Link text
Link - Web Component
The Link component can be used imported from:
Playground
Parameters
The Web component uses the <z-link>
tag:
By default, all the parameters are optional or can be set in different, except for the ones marked as required
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description | Slot | A11y |
---|---|---|---|---|
href [required] | string | The URL to navigate to when the link is clicked. | ||
is-current-page | boolean | Whether the link is the current page. | ||
content | string | The text to be displayed in the link. | default |
Parameters use
href
The href
parameter is used to define the URL to be opened when the link is clicked.
Flags
is-current-page
The is-current-page
parameter is used to define if the link is the current page.
Special uses
Inside a paragraph
If the z-link
is used in a paragraph, it will acquire an underline style:
Lorem ipsum dolor sit amet consectetur adipiscing,
Browser support
Detected engine:
Chromium
Webkit
Gecko