Components
Buttons
Galaxy Buttons

Galaxy Button

Beautifully designed Galaxy Button component with Tailwind CSS and Framer Motion. Copy, paste, and customize to enhance your web projects effortlessly.

Button Tailwind CSS Framer Motion Reveal

Installation

Run the following command:

npx gopx-webui add galaxy-button

Props

PropTypeRequiredDescription
textstringYesThe text to be displayed on the button.
gradientColorsstring[]YesAn array of color strings used for the button's gradient background.
shimmerColorstringNoThe color of the shimmer effect. Defaults to "white".
textColorstringNoThe color of the button text. Defaults to "white".
fontSizestringNoThe font size of the button text. Defaults to "1rem".
paddingstringNoThe padding around the button text. Defaults to "0.875rem 2.5rem".
starCountnumberNoThe number of stars to be generated around the button. Defaults to 100.
classNamestringNoAdditional CSS classes to apply to the button for custom styling.
onClick() => voidNoA callback function to be executed when the button is clicked.