{% include "@bolt-components-trigger/trigger.twig" with {
content: "This is a trigger"
} only %}
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
attributes
|
A Drupal-style attributes object with extra attributes to append to this component. |
object
| — |
|
content
|
Main content of the trigger (Twig only). |
string
, array
, object
|
— |
|
url
|
Contains a URL that the link points to. This may also be passed as part of |
string
| — |
|
target
|
Specifies where to display the linked URL. This may also be passed as part of |
string
| — |
|
type
|
Determines the button tag type for semantic buttons |
string
|
button
|
|
cursor
|
Type of cursor shown on hover. |
string
|
pointer
|
|
on_click
|
The name of a method on the |
string
| — |
|
on_click_target
|
|
string
| — |
|
display
|
Set the display property |
string
|
inline
|
|
no_outline
|
Turn off the default outline on focus |
boolean
|
false
|
|
disabled
|
Make trigger unusable and un-clickable. Only applies to |
boolean
|
false
|
|
npm install @bolt/components-trigger