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
npm i @uisatin/uiimport { 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.
npx shadcn@latest add https://uisatin.dev/r/link.jsonAdds link.tsx and labels.tsx to components/ui and installs radix-ui.
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.
| Prop | Type | Default |
|---|---|---|
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".
| Key | Action |
|---|---|
| Enter | Follows the link. |
Something wrong or missing on this page?
Report a problemSuggest an improvement