Cookie Consent

Dismissible cookie-consent banner with positional variants and accept / reject actions for privacy compliance. Install Cookie Consent from the VLLNT UI registry with the shadcn CLI.

Supported platforms:Web
Report a bug

Preview

Switch between light and dark to inspect the embedded Storybook preview.

Dismissible cookie-consent banner with positional variants and accept / reject actions for privacy compliance. Part of the core family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.

Set title to add a heading that also names the dialog, layout="bar" for a full-width band along the bottom edge instead of the floating card, and actions="equal" to render accept and decline as the same outline button. labels overrides the accessible names of the dialog (region) and the close button (close), so every string can be localized. The component only renders the banner: store the choice from onAccept, onDecline or onOpenChange.

Platform comparison

PlatformDependenciesCapabilities
Web@vllnt/ui@^0.3.0Browser rendering, DOM events, and ARIA semantics
Native—Not available

Installation

Add Cookie Consent to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:

pnpm dlx shadcn@latest add https://ui.vllnt.com/r/cookie-consent.json

Source

Stories

Explore every variant and state in the interactive Storybook: