Back Link

Small back navigation link with a left arrow icon, muted text that darkens on hover and a visible focus ring. Defaults to the label Back and accepts any href.

src/registry/ui/back-link.tsx/r/back-link.json

Default

Installation#

bash
npx shadcn@latest add @minidev/back-link

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/back-link.json

Usage#

tsx
import { BackLink } from "@/components/ui/back-link"

export function Example() {
  return (
    <BackLink href="/gallery">Gallery</BackLink>
  )
}

API reference#

BackLink props
PropTypeDefault
hrefstring"#"
childrenReact.ReactNode"Back"
classNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All navigation components

Learn more