Skip to content

Link

A native anchor for navigation.

Preview

Use Link

Link is a named export of @flood-md/react. Connect the package once, then import what you use.

First time here? Connect Flood
Example import style
link.tsxTSX
"use client";

import { FloodRoot, Link } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <Link href="/docs/installation">Install Flood</Link>
    </FloodRoot>
  );
}

Design notes

  • Use a button for state-changing actions and a link for navigation.
  • Link forwards native anchor attributes. Its optional solid/subtle/outline/ghost variants share Flood Button geometry; text is the unchanged default. No asChild API.

API reference

PropValuesDefault
variant"text" | "solid" | "subtle" | "outline" | "ghost""text"
size"2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl""md"
Native HTML propsAnchorHTMLAttributes<HTMLAnchorElement>Forwarded
View TypeScript source