# Hero Badge

> A versatile, animated badge component for highlighting new features, announcements, or important links.  Features: 	•	Smooth entrance animations 	•	Icon rotation on hover 	•	Multiple size variants 	•	Multiple style variants 	•	Link and button functionality 	•	Customizable icons 	•	Responsive design 	•	Accessibility features Notes: 	•	Built with Framer Motion for smooth animations 	•	Uses React Server Components (RSC) with the "use client" directive 	•	Employs a responsive design with a mobile-first approach 	•	Includes interactive hover animations 	•	Supports TypeScript with proper types 	•	Allows for custom styling and theming 	•	Optimized performance through proper usage of hooks

- Author: [Prism UI](https://21st.dev/@Codehagen)
- Library: [Prism UI](https://21st.dev/@Codehagen/library/prism-ui)
- License: mit
- Tags: Banner, Hero, Announcement
- npm dependencies: framer-motion
- Live preview: https://21st.dev/@Codehagen/components/hero-badge

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/Codehagen/hero-badge?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/banner.md
