Skip to main content

Link

Installation​

Install

yarn add @iag/chroma-react-ui.components

Import

import { Link } from '@iag/chroma-react-ui.components';

Accessibility​

Accessibility documentation(opens in new window)

Default​

Inverse​

Example with icon​

onClick​

Target Prop​

target="_blank" to open url in new window

Download Prop​

Causes the browser to treat the linked URL as a download. Can be used with or without a filename value. Without a value, the browser will suggest a filename/extension. How browsers treat downloads varies by browser, user settings, and other factors see mdn web docs for more details.

<Link href="/img/myfile.png" download>Download a file</Link>
<Link href="/img/myfile.png" download="test">Download a file called "test"</Link>

Properties​

CSS Variables​