Skip to content

Link

Pro

Navigation 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.

Purpose

A link is navigation written as text: inside a sentence, as a name, or on a line of its own. It is not an M3 component: M3 leaves text links to the platform, so it comes from @windmorph/react-pro, built from M3's colour roles, type scale and focus indicator, and routed like every library link.

For a section's or a dialog's action ("See all", "Edit profile"), use a text Button with href. When a whole card or row goes somewhere, give the Card or ListItem an href.

For text inside a sentence that does something rather than going somewhere ("and 3 others" opening a list, "See translation"), give onPress instead of href: it renders a <button> with the same variants, colour and tokens.

When not to use

For a section's or dialog's action use a text Button; for a whole card or row, a Card or ListItem with href.

See also

  • Button: Five variants and five sizes for text actions, with a toggle form and a press morph.
  • List: Rows with headline, overline, supporting text and leading or trailing content (icons, avatars, images, video thumbnails); items can be links, switches, checkboxes or radio buttons, and put in order by drag or a menu.