Componentnavigation0.4 KB gzipZero dependencies

BackLink

Chevron button with label that slides on hover, with focus ring

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add back-link

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { BackLink } from "@/components/ui/back-link" <BackLink href="#" label="Back" />

Source code

back-link.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxback-link.tsx39 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface BackLinkProps extends React.HTMLAttributes<HTMLElement> {  href: string;  label?: string;} export function BackLink({  href,  label = "Back", ...props}: BackLinkProps) {  return (    <a      href={href}      className={cn(

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { BackLink } from "@/components/ui/back-link"; <BackLink />
PropTypeDescription
hrefstringDestination URL rendered as a link target.
labelstringAccessible label text rendered or attached to the control. (Default: "Back")