v1.0.12
Link
Stable
This component is considered stable. Reach out to the Spark team to find out more about what this means.
Installation
Install
yarn add @spark-web/link
npm
@spark-web/link
Source GitHub.com
Bundle unpkg.com
Link is used for taking users to destinations, or moving from one page to another.
In cases where you'd like a button styled like a Link, see
ButtonLink
.
Props
Prop | Type | Description |
---|---|---|
href | string | URL to be used for the link (passed to the underlying anchor element). |
data? | DataAttributeMap | Sets data attributes on the component. |
The Link
component also accepts HTML a
anchor props and are not listed here.