Homelogologo
Sponsor

Anchor

Provides accessible navigation

Usage

The component simplifies styling with design tokens and an ergonomic API for responsive designs.

import { Anchor } from "@elemnts-ui/react";
<Anchor>{...content}</Anchor>

Variant

Use the variant prop to customize the component's appearance.

Within text

Use the component inline a text to create a hyperlink.

Routers

Use the asChild prop to compose Anchor with framework router links (e.g., Tanstack router Link).

API Reference

PropTypeDefault
variantprimary | secondary | tertiaryprimary
asChildbooleanundefined