Link
A text link with an animated underline. Internal links use your router; external ones open safely in a new tab.
Status: beta. Category: Navigation.
import { Link } from '@glyphui/ui'
Exports: Link, linkStyles.
Notes
- External links announce "(opens in a new tab)" to screen readers.
Example: Tones and underline
import { Link, Text } from '@glyphui/ui'
export default function Example() {
return (
<div className="grid gap-2">
<Text>
Read the <Link href="#">theme guide</Link> before you start.
</Text>
<Text tone="muted">
<Link href="#" tone="muted" underline="always">
Privacy policy
</Link>{' '}
·{' '}
<Link href="#" tone="default">
Terms
</Link>
</Text>
</div>
)
}
Example: External
Adds target, rel, an arrow and a screen-reader hint.
import { Link } from '@glyphui/ui'
export default function Example() {
return (
<Link href="https://www.radix-ui.com" external>
Radix UI primitives
</Link>
)
}
Live page: https://glyphui.xyz/components/link