Component libraryConsent preferences footer
Components/Blocks

Consent preferences footer

Pro

Review optional services and save category preferences.

npx shadcn@latest add @tidal-pro/footer-consent
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/footer-consent

Import components/ui/tidal.css, components/ui/footer-consent.css, components/ui/toggle-switch.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Required brand, heading, categories, controlled values and onCategoryChange callback. Categories require unique nonblank IDs and forward safe native switch attributes and refs; required categories are rendered locked. The component owns the native form shell and accepts consumer onSubmit/onReset callbacks while removing replacement children and dangerous markup from root, form, switch and button props. Optional policy links require unique IDs and suppress href plus click and auxiliary activation when disabled. saveState and status remain consumer supplied; the component never reads or writes cookies, storage, consent records or network services. The neutral responsive layout keeps 44px controls, 16px phone switch and link text, linked descriptions, long-text wrapping, RTL-safe layout and reduced motion.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.