Cookie Banner 1 - Full-width bottom bar
A hairline-bordered bar pinned to the bottom of the page with copy on the left and reject, customize and accept actions on the right, sliding up on load.
About Cookie Banner 1
A hairline-bordered bar pinned to the bottom of the page with copy on the left and reject, customize and accept actions on the right, sliding up on load.
Cookie Banner 1 is a free cookie banner block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 145 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.
- cookie
- consent
- gdpr
- bar
- bottom
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/cookie-banner-01Dependencies installed automatically: lucide-react, motion.
Uses: button, switch, utils.
Usage
import CookieBanner01 from "@/components/blocks/cookie-banner-01"
export default function Page() {
return <CookieBanner01 />
}