Fusion UI LogoFusion UI Logo
Fusion UI LogoFusion UI Logo
/
Getting Started
Concepts
Components
Example Apps
Getting Started
Concepts
Components
Example Apps
Fusion UI LogoFusion UI Logo
Getting Started
Concepts
Components
Example Apps
Overview
Actions
Button
Button Group
Segmented Button
Deprecated
Split Button
Toggle Button
Click To Copy
Toolbar
Navigation
Main Nav
Side Menu
Page Header
Tabs
Breadcrumbs
On-Page Menu
Link
Command Menu
Application Switcher
Context Switcher
Account Menu
Menu Bar
Deprecated
Inputs & Forms
Form
Form Actions
Deprecated
Form Divider
Form Field
Form Repeat
Form Spacing
Input
Prefix & Suffix
Rich Text Input
Autocomplete
Select
Date / Time Input
Calendar
Slider
Selection
Checkbox
Radio
Switch
Switch Select
Chip
Chip Choice
Chip Filter
Chip Input
Chip Sortable
Visual Select
Pricing Plan Select
Feedback & Loading
Banner
Inline Message
Snackbar
Inline Snackbar
Loading Spinner
Skeleton
Text Skeleton
Contextual Information
Badge
Status
Tag
Tooltip
Info
Hotkey
Icon
Icon Sizer
Containers & Overlays
Tile
Tile Content
Tile Footer
Tile Header
Annotated Section
Modal
Sheet
Popover
Context Menu
Data Display
Data Table
List
Timeline
Data Visualization
KPI Card
Ratio Card
Bar Chart
Line Chart
Pie Chart
Heatmap Calendar
Layout
Container
Stack Layout
Flow Layout
Internals
Blanket
Expansion Panel
Menu List Base
Menu Group
Search Bar
Components
...
Link

Link

Text that navigates to another page or resource.

Overview

A Link navigates to another page or resource. It renders a Next.js link and takes a MenuItem for its target.

Primary Link
"use client";
import React from "react";
import {Link} from "@brynlabs/fusion-ui";
export const LinkExample = () => (
<Link
linkStyle={"primary"}
link={{
href: "#",
title: "Primary Link",
}}>
Primary Link
</Link>
);

Styles

primary, secondary, tertiary and currentColor decrease the emphasis.

Primary LinkSecondary LinkTertiary Link
CurrentColor Link
"use client";
import React from "react";
import {Link} from "@brynlabs/fusion-ui";
export const LinkStylesExample = () => (
<div style={{display: "grid", gap: "1rem", placeItems: "start"}}>
<Link
linkStyle={"primary"}
link={{
href: "#",
title: "Primary Link",
}}>
Primary Link
</Link>
<Link
linkStyle={"secondary"}
link={{
href: "#",
title: "Secondary Link",
}}>
Secondary Link
</Link>
<Link
linkStyle={"tertiary"}
link={{
href: "#",
title: "Tertiary Link",
}}>
Tertiary Link
</Link>
<div style={{color: "var(--color--green-500)"}}>
<Link
linkStyle={"currentColor"}
link={{
href: "#",
title: "CurrentColor Link",
}}>
CurrentColor Link
</Link>
</div>
</div>
);

Variants

This is a Primary Link

This is a Primary Link

This is a Primary Link

This is a Secondary Link

This is a Secondary Link

This is a Tertiary Link

This is a Tertiary Link

This is a Tertiary Link

This is a CurrentColor Link

This is a CurrentColor Link

This is a CurrentColor Link

"use client";
import React from "react";
import {Link} from "@brynlabs/fusion-ui";
export const LinkVariantsExample = () => (
<div style={{display: "grid", gap: "1rem", placeItems: "start"}}>
<p className="body-font">
This is a{" "}
<Link
linkStyle={"primary"}
link={{
href: "#",
title: "Primary Link",
}}>
Primary Link
</Link>
</p>
<p className="body-font strong-font">
This is a{" "}
<Link
linkStyle={"primary"}
link={{
href: "#",
title: "Primary Link",
}}>
Primary Link
</Link>
</p>
<p className="helper-text-font">
This is a{" "}
<Link
linkStyle={"primary"}
link={{
href: "#",
title: "Primary Link",
}}>
Primary Link
</Link>
</p>
<p className="body-font">
This is a{" "}
<Link
linkStyle={"secondary"}
link={{
href: "#",
title: "Secondary Link",
}}>
Secondary Link
</Link>
</p>
<p className="helper-text-font">
This is a{" "}
<Link
linkStyle={"secondary"}
link={{
href: "#",
title: "Secondary Link",
}}>
Secondary Link
</Link>
</p>
<p className="body-font">
This is a{" "}
<Link
linkStyle={"tertiary"}
link={{
href: "#",
title: "Tertiary Link",
}}>
Tertiary Link
</Link>
</p>
<p className="body-font" style={{color: "#c32626"}}>
This is a{" "}
<Link
linkStyle={"tertiary"}
link={{
href: "#",
title: "Tertiary Link",
}}>
Tertiary Link
</Link>
</p>
<p className="helper-text-font">
This is a{" "}
<Link
linkStyle={"tertiary"}
link={{
href: "#",
title: "Tertiary Link",
}}>
Tertiary Link
</Link>
</p>
<p className="body-font">
This is a{" "}
<Link
linkStyle={"currentColor"}
link={{
href: "#",
title: "CurrentColor Link",
}}>
CurrentColor Link
</Link>
</p>
<p className="body-font" style={{color: "#c32626"}}>
This is a{" "}
<Link
linkStyle={"currentColor"}
link={{
href: "#",
title: "CurrentColor Link",
}}>
CurrentColor Link
</Link>
</p>
<p className="helper-text-font">
This is a{" "}
<Link
linkStyle={"currentColor"}
link={{
href: "#",
title: "CurrentColor Link",
}}>
CurrentColor Link
</Link>
</p>
</div>
);

Visited state

useVisitedState={false} or the no-visited class removes the visited color, e.g. for navigation items or calls to action that should not change color.

no-visitedvisited
"use client";
import React from "react";
import {Link} from "@brynlabs/fusion-ui";
export const LinkVisitedExample = () => (
<div style={{display: "grid", marginTop: "1rem", gap: "1rem", placeItems: "start"}}>
<Link
linkStyle={"primary"}
link={{
href: "/components/link",
title: "no-visited Link",
}}
useVisitedState={false}>
no-visited
</Link>
<Link
linkStyle={"primary"}
link={{
href: "/components/link",
title: "Visited Link",
}}
useVisitedState={true}>
visited
</Link>
</div>
);
On this page
  • Overview
  • Styles
  • Variants
  • Visited state