Link

A styled element for navigating between pages or sections.

class-variance-authority

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/link.json

Examples


Variant and size

Icon and Text


API Reference

This component is based on the <Link /> of next/link and supports all of its props. Additionally, it supports the following variants and props:

PropTypeDefault
variantdefault, primary, secondary, destructive, success, buttondefault
underlinenone, hover, alwayshover
sizesm, md, default,lgdefault
hrefstring-