Foundations

Link

@xui/link

A styled anchor.

Install

pnpm add @xui/link

Add the barrel to a standalone component's imports:

import { XuiLinkImports } from '@xui/link';

@Component({
  imports: [XuiLinkImports],
  // …
})

Examples

Default

Loading preview…

Underline

Loading preview…

In running text

Loading preview…

API

directivea[xuiLink]

A styled anchor.

Variants

AxisOptionsDefaultunderlinealwayshovernonealwayscolorinheritlinkprimarysecondarysuccesserrorwarninginfolink

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''colorXuiLinkVariants['color']Link colour. current follows the surrounding text — for links inside body copy that should not break the line's colour.this.config.colorunderlineXuiLinkVariants['underline']When to underline: always, only on hover, or none. Prefer always for links inside prose, where the underline is the only thing marking them.this.config.underline

Source

libs/ui/link/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.