# Hero Pill

> A stunning and interactive announcement banner featuring smooth animations and customizable content.  Features: 	•	Fluid entrance animations 	•	Customizable content and styling options 	•	Mobile-responsive design for optimal viewing on all devices 	•	Support for icons and links 	•	Accessible design with ARIA attributes 	•	TypeScript support for enhanced development experience 	•	Server-Side Rendering (SSR) compatibility  Notes: 	•	Powered by Framer Motion for seamless animations 	•	Fully typed using TypeScript for improved code quality and maintainability 	•	Implemented as a Server Component with client-side hydration for optimal performance 	•	Designed with a mobile-first approach to ensure responsiveness across devices 	•	Customizable through props for easy integration and reusability 	•	Optimized bundle size for efficient loading and performance 	•	Reusable across various contexts and projects

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

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/Codehagen/hero-pill?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/hero.md
