Skip to content
satin

Link

Text that goes somewhere, calm in a paragraph, marked when it leaves the site.

Set the brand and the corners once, see the theming guide.

Installation

Terminal
npm i @uisatin/ui
Import
import { Link } from '@uisatin/ui/link'

About 13.4 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.

First time with Satin? Set it up once, styles and fonts included, with the installation guide.

API Reference

The Link component is a wrapper around the a element. External links get an arrow, a screen-reader note and rel="noopener noreferrer"; asChild styles a router link.

PropTypeDefault
variant
"default""brand""muted"
"default"
underline
"always""hover""none"
"always" ("hover" when muted)
external
boolean
target === "_blank"
asChild
boolean
false
className
string
—
ref
Ref<HTMLAnchorElement>
—
...props
ComponentProps<'a'>

Other attributes go to <a>

—

Accessibility

A native a; asChild puts the styles on your router’s link. An external link adds a hidden arrow and "(opens in a new tab)" for screen readers, and rel="noopener noreferrer".

KeyAction
EnterFollows the link.