Componentnavigation0.4 KB gzipZero dependencies
BackLink
Chevron button with label that slides on hover, with focus ring
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add back-linkOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { BackLink } from "@/components/ui/back-link" <BackLink href="#" label="Back" />Source code
back-link.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| href | string | Destination URL rendered as a link target. |
| label | string | Accessible label text rendered or attached to the control. (Default: "Back") |