# Cookie consent blocks for shadcn/ui

> 36 cookie consent blocks from public shadcn/ui registries, free and paid, with live previews, source code and install commands.

- Page, with live previews: https://shadcn.exchange/blocks/cookie-consent
- 36 blocks, 15 free and 21 paid, from 10 registries.
- Search them as JSON: `https://shadcn.exchange/api/catalog?kind=blocks&category=cookie-consent&q=<words>`. Add `price=free` for the ones you can install, and `offset=<n>` for the next 24.
- With the shadcn CLI, which finds free blocks by their words: `npx shadcn@latest search @shadcn-exchange -q cookie-consent`

Each block's page answers in Markdown, source included, at its address with `.md` on the end. [The whole site for agents](https://shadcn.exchange/llms.txt).

## Free cookie consent blocks

All 15 blocks, best first. Each installs with the command beside it, in a project that has shadcn/ui set up.

- [Cookie Consent 01 - Footer Consent Bar by @shadcn-space](https://shadcn.exchange/r/shadcn-space/cookie-consent-01): A minimal floating cookie consent banner with clear messaging, preference controls, and quick accept or reject actions. `npx shadcn@latest add https://shadcn.exchange/r/shadcn-space/cookie-consent-01.json`
- [Corner Consent Card by @7ovr](https://shadcn.exchange/r/7ovr/cookie-consent-2): Cookie consent card pinned to the bottom left corner with accept all, reject, and preferences actions under a privacy heading. `npx shadcn@latest add https://shadcn.exchange/r/7ovr/cookie-consent-2.json`
- [Bottom Cookie Bar by @7ovr](https://shadcn.exchange/r/7ovr/cookie-consent-1): Cookie consent bar fixed to the bottom of the page with accept all and decline buttons and a cookie policy link. `npx shadcn@latest add https://shadcn.exchange/r/7ovr/cookie-consent-1.json`
- [Expandable Consent Banner by @7ovr](https://shadcn.exchange/r/7ovr/cookie-consent-5): Cookie consent banner with accept and reject actions plus a Customize control that expands per-category consent switches inline. `npx shadcn@latest add https://shadcn.exchange/r/7ovr/cookie-consent-5.json`
- [Cookie Consent by @hirael](https://shadcn.exchange/r/hirael/cookie-consent): Floating consent banner with per-category switches, accept, reject, and save actions, and a choice persisted in localStorage. Ships composable parts. `npx shadcn@latest add https://shadcn.exchange/r/hirael/cookie-consent.json`
- [Cookie Consent 2 by @paceui](https://shadcn.exchange/r/paceui/marketing-cookie-consent-2): Centered modal card with icon header, privacy copy, and stacked/inline decision buttons. `npx shadcn@latest add https://shadcn.exchange/r/paceui/marketing-cookie-consent-2.json`
- [Cookie consent by @hairline](https://shadcn.exchange/r/hairline/cookie-consent): A cookie banner with a mascot: every cookie you allow flies to Crumb, who catches it, nibbles it and gets rounder and happier. `npx shadcn@latest add https://shadcn.exchange/r/hairline/cookie-consent.json`
- [Cookie Consent 1 by @pacekit](https://shadcn.exchange/r/pacekit/marketing-cookie-consent-1): Ultra minimal floating bar layout with concise policy text and primary accept button. `npx shadcn@latest add https://shadcn.exchange/r/pacekit/marketing-cookie-consent-1.json`
- [Cookie Consent 3 by @paceui](https://shadcn.exchange/r/paceui/marketing-cookie-consent-3): Left-aligned toast banner featuring icon avatar, description text, and customization buttons. `npx shadcn@latest add https://shadcn.exchange/r/paceui/marketing-cookie-consent-3.json`
- [Cookie Consent 2 by @pacekit](https://shadcn.exchange/r/pacekit/marketing-cookie-consent-2): Centered modal card with icon header, privacy copy, and stacked/inline decision buttons. `npx shadcn@latest add https://shadcn.exchange/r/pacekit/marketing-cookie-consent-2.json`
- [Cookie Consent 1 by @paceui](https://shadcn.exchange/r/paceui/marketing-cookie-consent-1): Ultra minimal floating bar layout with concise policy text and primary accept button. `npx shadcn@latest add https://shadcn.exchange/r/paceui/marketing-cookie-consent-1.json`
- [Cookie Consent 3 by @pacekit](https://shadcn.exchange/r/pacekit/marketing-cookie-consent-3): Left-aligned toast banner featuring icon avatar, description text, and customization buttons. `npx shadcn@latest add https://shadcn.exchange/r/pacekit/marketing-cookie-consent-3.json`
- [Cookie Preferences Panel by @7ovr](https://shadcn.exchange/r/7ovr/cookie-consent-3): Cookie preferences panel with switches for necessary, analytics, and marketing categories, plus save preferences and reject all buttons. `npx shadcn@latest add https://shadcn.exchange/r/7ovr/cookie-consent-3.json`
- [Banner Cookie by @lema-ds](https://shadcn.exchange/r/lema-ds/ds-banner-cookie): Barra de consentimento cookies fixed bottom/floating — blockus #09-12. `npx shadcn@latest add https://shadcn.exchange/r/lema-ds/ds-banner-cookie.json`
- [Cookie consent by @quill](https://shadcn.exchange/r/quill/cookie-consent): A cookie consent banner offering accept, reject, and preferences actions. `npx shadcn@latest add https://shadcn.exchange/r/quill/cookie-consent.json`

## Paid cookie consent blocks

All 21 blocks, best first. Their registries sell these: each installs from its registry once bought.

- [Cookie Consent 02 - Cookie Settings Popup by @shadcn-space](https://shadcn.exchange/r/shadcn-space/cookie-consent-02): A structured consent layout that allows users to configure cookie categories while maintaining a seamless browsing experience.
- [Banner Cookie by @blockforge](https://shadcn.exchange/r/blockforge/banner-cookie): A cookie notice with two honest choices, zero dark patterns.
- [Cookie Banner 2 - Bottom cookie bar with privacy link by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner2): A fixed bottom cookie bar with title, supporting text, a privacy link, and reject plus accept actions.
- [Cookie Banner 5 - Bottom left cookie card with dismiss by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner5): A bottom-left cookie card with dismiss control, consent copy, and a single accept action.
- [Cookie Banner 1 - Simple bottom cookie bar by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner1): A fixed bottom cookie bar with short consent copy plus reject and accept actions.
- [Cookie Banner 15 - Mega bottom bar with category cards by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner15): A full-width bottom cookie panel with a grid of category cards and switches already visible.
- [Cookie Banner 11 - Bottom left card that opens a dialog by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner11): An advanced bottom-left cookie card that opens a customize dialog with category switches.
- [Cookie Banner 19 - Advanced cookie dialog with categories by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner19): A centered advanced cookie dialog with category switches visible on load plus bulk actions.
- [Cookie Banner 9 - Bottom bar that opens a customize dialog by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner9): An advanced bottom cookie bar that opens a centered dialog with category switches when customize is selected.
- [Cookie Banner 13 - Bottom right card that opens a dialog by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner13): An advanced bottom-right cookie card that opens a customize dialog with category switches.
- [Cookie Banner 6 - Bottom right cookie card by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner6): A simple bottom-right floating cookie card with consent copy and reject plus accept actions.
- [Cookie Banner 8 - Bottom bar that slides up to customize by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner8): An advanced bottom cookie bar that slides up to reveal category switches when customize is opened.
- [Cookie Banner 12 - Bottom right card that expands to customize by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner12): An advanced bottom-right cookie card that expands upward to show category switches.
- [Cookie Banner 7 - Bottom right cookie card with link by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner7): A bottom-right cookie card with a privacy link and reject plus accept actions.
- [Cookie Banner 10 - Bottom left card that expands to customize by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner10): An advanced bottom-left cookie card that expands upward to show category switches.
- [Cookie Banner 14 - Mega bottom bar with switch list by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner14): A full-width bottom cookie panel with category switches visible by default plus bulk actions.
- [Cookie Banner 17 - Simple cookie consent dialog by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner17): A centered popup cookie dialog with consent copy and reject plus accept actions.
- [Cookie Banner 4 - Bottom left cookie card by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner4): A simple bottom-left floating cookie card with consent copy and reject plus accept actions.
- [Cookie Banner 3 - Bottom cookie bar with icon by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner3): A fixed bottom cookie bar with a cookie icon, consent copy, and reject plus accept actions.
- [Cookie Banner 16 - Mega bottom bar with split summary by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner16): A wide bottom cookie panel with summary copy on one side and visible category switches on the other.
- [Cookie Banner 18 - Medium cookie dialog with details by @shadcnblocks](https://shadcn.exchange/r/shadcnblocks/cookie-banner18): A centered cookie dialog that reveals category switches when customize is opened.

## Registries with the most cookie consent blocks

- [@shadcnblocks](https://shadcn.exchange/r/shadcnblocks): 19 blocks, all paid
- [@7ovr](https://shadcn.exchange/r/7ovr): 4 blocks, all free
- [@pacekit](https://shadcn.exchange/r/pacekit): 3 blocks, all free
- [@paceui](https://shadcn.exchange/r/paceui): 3 blocks, all free
- [@shadcn-space](https://shadcn.exchange/r/shadcn-space): 2 blocks, 1 free and 1 paid
- [@blockforge](https://shadcn.exchange/r/blockforge): 1 block, paid
- [@hairline](https://shadcn.exchange/r/hairline): 1 block, free
- [@hirael](https://shadcn.exchange/r/hirael): 1 block, free
- [@lema-ds](https://shadcn.exchange/r/lema-ds): 1 block, free
- [@quill](https://shadcn.exchange/r/quill): 1 block, free
