Landing
LandingActionButton
Button for any landing CTA. Takes a LandingAction: to with #id scrolls to the section; href covers tel:, mailto: and external links. iconPosition places the icon before (start, default) or after (end) the label.
components/landing/LandingActionButton.vue
View in the demo
Example
Every landing CTA is a LandingAction. to: '#id' scrolls to a section; href handles tel:, mailto: and external links. kind: 'primary' is the filled button, 'secondary' the outlined one on the surface colour and 'link' a text button with an arrow and no background, so it sits on any section tone.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
actionrequired | LandingAction | — | The call to action to render: label, to or href, kind and an optional icon. |
icon-only | boolean | false | Shows only the action icon and moves the label to aria-label. |
button-type | ButtonType | — | Overrides the button style that the action kind picks. |