Underlined Arrow Text Link
Small white medium-weight text with a bottom border and trailing arrow, e.g. Read the guide.
Rebuilt from silico.ai/features in the Moonlit Atelier style.
npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/blocks/underlined-arrow-link.json
Looks exactly like silico.ai: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/mine/underlined-arrow-link.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: `label` (link text) and `href`. Place it on a dark background; on hover it dips to 85% opacity and the arrow nudges 2px right.
components/underlined-arrow-link.tsx
export default function UnderlinedArrowTextLink({ label = "Browse the handbook", href = "#" }: { label?: string; href?: string }) { return ( <a href={href} className="group inline-flex items-center gap-1.5 border-b border-primary pb-0.5 font-sans text-[13px] font-medium leading-5 text-primary transition-opacity duration-ui-hover ease-ui-hover hover:opacity-85 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-primary" > <span>{label}</span> <svg aria-hidden="true" width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" className="transition-transform duration-ui-hover ease-ui-hover group-hover:translate-x-[2px]" > <path d="M2 6h8M6.5 2.5 10 6l-3.5 3.5" /> </svg> </a> ); }export default function UnderlinedArrowTextLink({ label = "Browse the handbook", href = "#" }: { label?: string; href?: string }) { return ( <a href={href} className="group inline-flex items-center gap-1.5 border-b border-foreground pb-0.5 font-sans text-[13px] font-medium leading-5 text-foreground transition-opacity duration-moonlit-ui-hover ease-moonlit-ui-hover hover:opacity-85 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-foreground" > <span>{label}</span> <svg aria-hidden="true" width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round" className="transition-transform duration-moonlit-ui-hover ease-moonlit-ui-hover group-hover:translate-x-[2px]" > <path d="M2 6h8M6.5 2.5 10 6l-3.5 3.5" /> </svg> </a> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.