Overview
Text link styles. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
Install via NPM
npm install @bolt/components-link
Usage
{% include "@bolt-components-link/link.twig" with {
text: "This is a link",
url: "https://pega.com"
} only %}
Schema
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
|
Display either an inline link or flex link (icons can hang on either side). |
string
|
inline
|
|
|
Controls the vertical alignment of text and icon. |
string
|
center
|
|
|
Renderable text content for the link. |
string , object , array |
— |
|
|
Contains a URL that the link points to. This may also be passed as part of |
string
| — |
|
|
Specifies where to display the linked URL. This may also be passed as part of |
string
| — |
|
|
Bolt icon. Accepts the same options as Bolt Icon Component |
object
| — |
|
|
Whether this link should get special headline styling treatment. |
boolean
| — |
|
|
Use url instead. |
| — |
|