Skip to content

Shadcn cookie consent blocks

8 cookie consent sections. Each one is its own item with its own number: pick it, install it, edit it as your code.

In short: 8 shadcn/ui cookie consent blocks for React and Tailwind CSS v4, in light and dark, that run in Next.js, Vite and Astro. All come with UI Pro, €199 once. All are interactive. Last block added 4 December 2026.

All 8 cookie consent blocks at a glance

Each row is one block: the business its demo copy is written for, its layout, the shadcn/ui parts it imports and whether it ships JavaScript.

BlockWritten forLayoutshadcn/ui partsPriceJavaScript
Applegarth cookie-consent-01Nursery: A nursery for bare-root fruit trees in Wensley.bar top/in flowbuttonUI ProInteractive
The Eskdaleside line cookie-consent-02Railway: A small railway with its own timetable.split 4/7 answer rowsbuttonUI ProInteractive
Larchmere cookie-consent-03Furniture: Furniture made to order in Kendal.corner card 350buttonUI ProInteractive
Camping Moselbrug cookie-consent-04Campsite: On a lake where four languages are spoken.four language columnsbuttonUI ProInteractive
Quillfern Soap cookie-consent-05Soap maker: A soap maker in Ludlow.band statement and listbuttonUI ProInteractive
Saltcote Seal Trips cookie-consent-06Boat trips: One boat from the harbour in Seahouses.split 5/7 photo framebutton, checkbox, labelUI ProInteractive
Tidworth Climbing cookie-consent-07Climbing hall: A hall with members.account columnbuttonUI ProInteractive
The Wharram Courier cookie-consent-08Local newspaper: A weekly paper for one valley.side panel 460buttonUI ProInteractive

About these cookie consent blocks

Each of the 8 is written for a real kind of business, eight in all, from nursery and furniture to soap maker, so the copy and photos show the section doing its job instead of placeholder text. By layout: one uses cards, one uses a photo. All of them need interaction, so each ships a little JavaScript.

Questions about shadcn cookie consent blocks

Are these shadcn cookie consent blocks free?

These blocks come with UI Pro, €199 once for one person (excl. tax). 53 other blocks are free and need no account.

How do I install a shadcn cookie consent block?

With the shadcn CLI, in any React project that has a components.json: npx shadcn@latest add https://www.themes.dev/r/ui/cookie-consent-01.json. It adds the block and the shadcn/ui parts it uses to your code. You first set up the @themesdev registry once, with the API key from your account in .env.local. You can also let Cursor or Claude Code install it through our MCP server.

Do they work with Next.js and Astro?

Yes. They are React components on shadcn/ui and Tailwind CSS v4, so they run in Next.js, Vite and Astro with React. In Astro they render on the server, and only the parts that need interaction ship JavaScript.

Can I use them in client projects?

Yes. The UI Pro licence covers unlimited projects for yourself and your clients. What you can’t do is resell the blocks themselves as a kit or template.

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans