Skip to content

Fill Link

Full-width link row that fills on hover, inverts its text and nudges its content inward.

From the Nitip template — see it in context

Installation

$ npx shadcn@latest add https://framebrick.co/r/fill-link.json

Usage

import { FillLink } from "@/components/ui/fill-link";

<FillLink href="https://instagram.com/studio" meta="@studio">Instagram</FillLink>

Props

PropTypeDefaultDescription
hrefstring—Link target. http(s) links open in a new tab.
metaReactNode—Shown at the right of the row before the arrow (a handle, a value, a date).
arrowbooleantrueShow the arrow that turns from ↘ to → on hover.
…propsanchor props—Passed to the link.
  • Keyboard focus fills the row too, so it never looks inert while tabbing.

AI prompt

Paste into v0, Lovable, Bolt or Claude to rebuild this component in your own project.

Create a React + Tailwind CSS + Motion (motion/react) component called FillLink using Next.js Link.
- A full-width row: label on the left, optional meta and an arrow on the right, border-b, py-3, text-sm, text-foreground.
- On hover and on keyboard focus the row fills: bg-foreground with text-background, as a 300ms CSS color transition
  (theme colors, not fixed black and white).
- The label slides 12px right and the right-hand group slides 12px left, with a spring (bounce 0.2, duration 0.4s).
- The arrow (down-right) rotates -45° on hover so it points right, same spring.
- External http(s) links open in a new tab with rel noopener noreferrer.

Be the first to know

Get new templates and components first

One short email when we release a template or a free component. No spam — unsubscribe anytime.

We use your email only for Framebrick updates. Privacy policy