Skip to content
v2.5.0
English
Русский
Documentation

Link

Link is the navigational text action component for inline and standalone navigation affordances.

Root Props

PropTypeDefault
asChildboolean—
Renders the link as a child component using a Slot (e.g., Radix UI asChild). Useful for composing links with routing libraries like Next.js (<Link>) or react-router.
refRef<HTMLAnchorElement>—
Ref to the underlying anchor (<a>) element. Useful for DOM access, focus control, or measurement.

Also accepts all <a> attributes.

Child Parts

Link does not expose public child parts.

Types

  • LinkProps

State Model

  • Link is stateless from the component API perspective.
  • asChild lets the consumer preserve link styling while delegating rendering to another link-like component.