Menu

Link

Inline navigation text. 3 colors × 4 states.

Installation

$ npx uix-ui@latest add link

This copies the file into components/ui/link.tsx in your project. npx shadcn@latest add @uix/link works too.

Usage

link.tsx
import { Link } from "@/components/ui/link";

<Link href="#shipping">Delivery times and charges</Link>

Examples

Colours and arrow

Props

PropTypeDefaultDescription
colorbrand | neutral | danger"brand"
showIconbooleanfalseShows the arrow-up-right icon after the text.

Everything else is passed to the root element, so className, aria-* and event handlers work as usual.

Dependencies

Installed for you by the CLI.

  • class-variance-authority
  • clsx
  • tailwind-merge
  • lib/utils.ts
  • components/ui/icons.tsx
esc

↑↓ to navigate · ↵ to select · esc to close