<Link />

Link provides actionable elements in the style of hyperlinks.

Variants

Link will inherit font size by default.

Componentry

Props

Name
Description
disabled

Disables the element, preventing mouse and keyboard events

boolean
href

HTML element href

string
to

Routing to

string
variant

Display variant

"text"
wrapWhenDisabled

Indicates whether buttons in a disabled state should be wrapped with a span

boolean

Styling

Text styles

Class
Description
.C9Y-Link-DisabledWrapper
Class applied to disabled links' wrapper element
.C9Y-Link-base
Base class applied to all variants for shared structural styles
.C9Y-Link-text
Variant class applied when `variant="text"`

TypeScript customization

Link exposes component prop types customization through module augmentation of 'componentry/types/components/Link/Link' using LinkPropsOverrides.