Link
Getting Started
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: "#!"
} only %}
Schema
Name | Type | Value(s) | Description | Default |
---|---|---|---|---|
attributes | object
| |
A Drupal-style attributes object with extra attributes to append to this component. |
N/A |
text |
string OR object OR array |
|
Renderable text content for the link. |
N/A |
url | string
| |
A url to link to. This may also be passed as part of |
N/A |
href | string
| |
Deprecated. Use url instead. |
N/A |
icon | object
|
|
Bolt icon. Accepts the same options as Bolt Icon Component |
N/A |
isHeadline | boolean
| |
Whether this link should get special headline styling treatment |
N/A |