/border

Border Components for React & Next.js

Highlight your UI elements with 27 React border components, leveraging Tailwind CSS for refined outlines and accents in Next.js.

About border components

This collection has 38 border components for React, focused on outlines, edges, and animated frames. You'll find gradient borders, glowing outlines, and animated variants like a beam that travels around the edge of a card or button. Some add moving light effects; others are static accents for panels and inputs. If you're after a border beam or other animated borders to frame a component, these give you the effect as reusable markup.

Use a static gradient outline for a quiet accent, and an animated beam when you want an element to catch the eye. Wrap it around a card, button, or input as a container. Copy the TSX, install via the shadcn CLI with the registry URL, or pull it through the Magic MCP in your editor. They're Tailwind-based and use Motion for the moving-edge animation.

Frequently asked questions