Skip to content
nexubDesign System
v12.7.0

Components · Inline Primitives

Link

StableAdded v0.0.1

Styled anchor link with variant and external support.

import { Link } from '@nexub/react';
View as Markdown

Playground

Props

variant
TSX
<Link href="#">View documentation</Link>

Examples

Default

Variants

External

States

Props

Props
PropTypeDefaultDescription
variant'default' | 'muted' | 'underlined''default'Visual style of the link.
externalbooleanfalseOpens the link in a new tab with appropriate rel attributes.
hrefstring—The URL the link points to.
asChildboolean—Merges props onto the immediate child element (Radix Slot).