Magical Share Menu
The `Magical Share Menu` component creates an animated share button that expands to reveal social media links in a circular pattern.
Magical Share Menu
installation
Install Dependencies
To use the Astronaut Social Card
component, you need to install the following dependencies:
Add util file
Create a file named utils.ts
in the same directory as the component and add the following code:
lib/utils.ts
use this component in your app
Props
Prop | Type | Description |
---|---|---|
socialLinks | Array<{ icon: React.ReactNode; color: string; url: string; }> | Array of social media links with icons, colors, and URLs. |
icon | React.ReactNode | React component to display as the social media icon. |
color | string | HEX color code for the icon and hover effect. |
url | string | URL to navigate to when the icon is clicked. |