Last active
February 24, 2025 14:58
-
-
Save nimone/be059cc9ef0ee9c7e2694352762737b8 to your computer and use it in GitHub Desktop.
Animated icon button component in React and Tailwind CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GitHub, Twitter, Facebook, Instagram, Youtube } from "react-feather" | |
import IconButton from "./components/IconButton" | |
export default function App() { | |
return ( | |
<main className="App gap-4"> | |
<h1 className="text-gray-700 font-medium">Checkout Our Socials</h1> | |
<IconButton text="Github"> | |
<GitHub size={20} /> | |
</IconButton> | |
<IconButton text="Facebook" color="bg-blue-500"> | |
<Facebook size={20} /> | |
</IconButton> | |
<IconButton | |
text="/ycldev" | |
color="bg-gradient-to-tr from-yellow-500 to-purple-500 via-pink-500" | |
> | |
<Instagram size={20} /> | |
</IconButton> | |
<IconButton text="/YourCodeLab" color="bg-sky-500"> | |
<Twitter size={20} /> | |
</IconButton> | |
<IconButton text="@ycldev" color="bg-red-500"> | |
<Youtube size={20} /> | |
</IconButton> | |
</main> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment