Cta
<ns-cta> Overview
A call-to-action allows users to take action once they are ready for it.
Examples
Guidance
Implementation
Placement
The ns-cta component can be used in the following components:
<ns-card><ns-content><ns-form><ns-form-group><ns-landmark><ns-lockup><ns-product-card>
Specification
Attributes
href
- Property
href- Type
string
loading
- Property
loading- Description
- Whether the CTA is in a loading state.
- Type
boolean- Default
false
loading-message
- Property
loadingMessage- Description
- The message to display when the CTA is in a loading state. Defaults to 'Loading...'.
- Type
string- Default
Loading...
disabled
- Property
disabled- Type
- Default
false
icon
- Property
icon- Type
string- Default
arrow-right
type
- Property
type- Description
- The type of the CTA.
- Type
directtextsubmitreset- Default
direct
Slots
| Slot | Permitted tags | Description |
|---|---|---|
| Anonymous slot | Anonymous slot for content. |
Events
| Name | Description |
|---|---|
click | Dispatched when the CTA is clicked. |