Hero 20 - With code snippet cardPro
Split developer hero with a file-tabbed code card on the right; switch languages and copy the snippet with one click.
About Hero 20
Split developer hero with a file-tabbed code card on the right; switch languages and copy the snippet with one click.
Hero 20 is a pro hero block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 149 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- code
- developer
- split
- tabs
- copy
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/hero-20Dependencies installed automatically: lucide-react, motion.
Uses: button, reveal, use-copy, utils.
Usage
import Hero20 from "@/components/blocks/hero-20"
export default function Page() {
return <Hero20 />
}