Link
ProNavigation written as text: in a sentence, as a name, or on its own line. Underlined in text, routed like every library link, with new-tab handling. Not an M3 component (@windmorph/react-pro).
import { Link } from '@windmorph/react-pro';Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.
Keyboard
| Key | Action | Where |
|---|---|---|
| Tab | Moves focus to the link, and on to the next element. | |
| Enter | Follows the link.With href | With href |
| Enter or Space | Presses it: it is a button with the link's look.With onPress | With onPress |
Screen reader
- Role
link(ana), orbuttonwithonPressand nohref.- Accessible name
- Its text (
children), oraria-labelfor non-text content such as a logo. - States announced
- None. An
externallink, or one withtarget="_blank", adds "opens in a new tab" after its text (labels.newTab).
The "open in new" icon on an external link is decorative and hidden from assistive tech.
Focus
- It is in the Tab order where it sits in the text.
- Keyboard focus shows M3's focus indicator: a 3px
secondaryoutline 2px outside the link. Astandalonelink also underlines while focused. Pointer presses show no ring.
Touch target
- A
standalonelink, on a line of its own, has an invisible 48 × 48px touch target (TouchTarget) around its text, in an inline wrapper so the underline still reaches the text. - An
inlineorplainlink is as tall as its line of text and has no extended target, as text links in running text usually do not; WCAG 2.5.8 exempts links inside a sentence. Give aplainlink that stands alone (a logo, a photo tile) room of its own.
Motion
None. It has no animation: the underline appears and goes without a transition.
What you need to do
- Links in text are underlined (
inline, WCAG 1.4.1);standalonelinks underline on hover, focus and press.plainlinks never underline, so keep them for non-text content such as a logo or a photo tile, and name them witharia-label. - Write link text that says where it goes out of context; avoid "click here".
- Use
hrefto go somewhere andonPressto do something, so the element and its keys match. Translate "opens in a new tab" withlabels.newTab. - In forced-colours mode links use the system link colour (
LinkText) and are always underlined.