Arrow Fill Button
A rounded button with an expanding color fill and a sliding arrow on hover or keyboard focus.
Hover or focus the button to see its fill animation.
Component preview
Install using CLI
npx shadcn@latest add "https://www.obsidianui.dev/r/arrow-fill-button.json"Usage
Code
"use client";
import { ArrowFillButton } from "@/components/block/arrow-fill-button";
export default function Demo() {
return <ArrowFillButton href="/components">Explore ObsidianUI</ArrowFillButton>;
}Install Manually
1
Install dependencies
npm install clsx tailwind-merge
2
Copy the source code
Copy into components/block/arrow-fill-button.jsx
3
Add the CSS file
Copy into components/block/arrow-fill-button.css
4
Add the supporting file
Copy into lib/utils.ts
Preview behavior
Hover or focus the button to see its fill animation. The effect stays inside its container and respects reduced motion preferences.
Last updated on