Twigs Logo

Link

A flexible link component that renders as a styled anchor element with composition support. Perfect for navigation, external links, and custom link implementations.

Import

import { Link } from "@sparrowengg/twigs-react";

Usage

const LinkExample = () => {
  return (
    <Link href="https://github.com/surveysparrow/twigs" target="_blank">Link</Link>
  );
};

Props

PropTypeDefault
asChild?
boolean
false
href?
string
-
target?
string
-
rel?
string
-
css?
object
-
className?
string
-

The Link component also accepts all standard HTML anchor attributes such as download, hreflang, media, ping, referrerPolicy, type, and event handlers like onClick, onFocus, onBlur, etc.