Calm motion: animations on this site only fade, with no movement
Link
Text link, always underlined; router-aware
Basic
Read the install guide, or the Vue guide (opens in a new tab) first.
Photo by a friend. Credits
- A link in text is always underlined. Color alone does not show a link to a reader who cannot see the color (WCAG 1.4.1).
externalopens the page in a new tab. It adds an arrow and the hidden words "opens in a new tab", so a screen reader user knows before the click.labels.newTabchanges the words.- If you provide a router link with
blessLinkKey, an in-app path goes through it. An external link stays a plain<a>. mutedis for a footer or a caption. The underline stays.
Usage
ts
import { BlessLink } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
href* | string | — | |
external | boolean | — | another site: opens in a new tab, with an arrow and a hidden "opens in a new tab" |
muted | boolean | — | the muted text color, for a footer or a caption. The underline stays |
labels | Partial<{ newTab: string; }> | — |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |