A sleek button with purple glow effects and hover animations.
Preview
Code
app/page.tsx
1importThreadsButtonfrom"@/app/components/buttons/threads-button";23constThreadsButtonPage=()=>{4return(5<divclassName="w-screen h-screen bg-black items-center justify-center flex">6<ThreadsButtontext="Sign up today"/>7</div>8);9}1011exportdefaultThreadsButtonPage;
Installation
Initialized a project and installed the necessary dependencies to use this component.
1. Initialize a new Next.js project:
npx create-next-app@latest my-app
Copy & Paste Components
components/buttons/threads-button.tsx
1import{ArrowRightCircle}from"lucide-react";2importReactfrom"react";34interfaceThreadsButtonProps{5 text:string;6}78constThreadsButton:React.FC<ThreadsButtonProps>=({ text })=>{9return(10<divclassName="thread-button-backdrop">11<buttonclassName="thread-button"type="submit">12{text}13<ArrowRightCircle/>14</button>15</div>16);17};1819exportdefaultThreadsButton;