Rainbow Button — animated rainbow border and glow

A React call-to-action button whose border carries a moving rainbow gradient, with a soft glow of the same colours underneath. It has two looks (filled and outline) and four sizes, flips its body colour in dark mode, and with asChild can render a link or any other element with the same styling. All native button attributes such as disabled and type work. Built with React and Tailwind CSS v4; the motion is pure CSS.

Rainbow Button — animated rainbow border and glow | Hub Design

Contact: info@hubdesign.ir · 0211733

Author: Mohammad Barotuiha