Skip to content
OwnlyPlans

Element

Spinning Border Button

A dark pill with a thin light trail travelling around its border.

Remix

Preview and code

Markdown
Buttons

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/spinning-border-button.json

Adds the React files to components/ownlyplans/ in a project set up with shadcn and Tailwind CSS. Or copy them from the Code tab.

About

A conic gradient rotates behind the button and a mask keeps only the border visible. The trail pauses for reduced motion.

Your AI tool
Starter prompt

		

Download the plan