| title | Link |
|---|---|
| description | Display a hyperlink component |
| source | packages/raystack/components/link |
import { playground, sizeDemo, variantDemo, styleDemo, weightDemo, } from "./demo.ts";
Import and assemble the component:
import { Link } from "@raystack/apsara";
<Link />The Link is built over Text and accepts all it's props
Choose from different variants.
The Link component supports 10 different sizes.
Control the visual emphasis of links with different font weights.
Additional style variations including underlined and external links.
The Link component follows accessibility best practices:
- Uses native
<a>elements with properrole="link" - External links include
target="_blank"andrel="noopener noreferrer" - External links have aria-labels indicating they open in new tabs
- Download links include appropriate aria-labels
- Maintains color contrast ratios for all variants
- Hover feedback uses an opacity transition