Acronis UIKit
Components

Link

An inline text link with an optional external-link icon.

Usage

import { Link } from '@acronis-platform/ui-react';

Link is an inline, semibold text link themed by the --ui-link-* tokens (underline appears on hover). It is polymorphic via Base UI's useRender — pass the render prop to render a router Link instead of the default <a>.

The token tier carries one set per surface, selected with variant: normal (the default) for ordinary surfaces, and inverse for links over a backdrop, scrim, or dark brand surface.

Examples

A basic link:

<Link href="/">Documentation</Link>

Append a trailing external-link icon for links that leave the app:

<Link href="https://acronis.com" external>
  Acronis website
</Link>

Use variant="inverse" for a link sitting on a backdrop or dark brand surface — it resolves its text color against the --ui-link-inverse-* tokens instead. This surface is text-only and always enabled: the design defines neither an external icon nor a disabled state for it, so external and disabled are both ignored there.

<Link href="/" variant="inverse">
  Documentation
</Link>

disabled makes the link inert — disabled color, removed from the tab order, no navigation:

<Link href="/" disabled>
  Documentation
</Link>

disabled applies to variant="normal" only. The design defines no disabled state on a backdrop, so on variant="inverse" the prop is ignored entirely — the link keeps its href and stays navigable, focusable and hoverable. When a link on a backdrop needs to be inert, omit it from the UI rather than disabling it.

Render as a router link with render (Base UI composition):

import { Link as RouterLink } from 'react-router';

<Link render={<RouterLink to="/dashboard" />}>Dashboard</Link>

API Reference

Prop

Type

Edit on GitHub

On this page