Cookie banner preview
A consumer-controlled cookie notice with native choice buttons, a real policy destination and no built-in persistence.
pro · Feedback · composite
When to use
- Use it when a page needs a consumer-controlled cookie notice with native choice buttons, a real policy destination and no built-in persistence.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose alert instead when inline notices with icons, actions and optional dismissal is the actual interface need, rather than cookie banner.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/cookie-bannerImport components/ui/tidal.css, components/ui/cookie-banner.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/cookie-banner.css";
import{TidalCookieBanner}from"./components/ui/cookie-banner";
export default()=><div className="tidal-scope"><TidalCookieBanner actions={[{id:"example",label:"Demo",onAction:() => {}}]} description={"Demo"} title={"Demo"}/></div>;API and props
TidalCookieBanner.actions (required)ReadonlyArray<TidalCookieBannerAction>Required actions value accepted by this exported component.
TidalCookieBanner.description (required)ReactNodeRequired description value accepted by this exported component.
TidalCookieBanner.title (required)ReactNodeRequired title value accepted by this exported component.
TidalCookieBanner.actionsLabelstring | undefinedOptional actions label value accepted by this exported component.
TidalCookieBanner.badgeReactNodeOptional badge value accepted by this exported component.
TidalCookieBanner.detailReactNodeOptional detail value accepted by this exported component.
TidalCookieBanner.emptyActionsMessageReactNodeOptional empty actions message value accepted by this exported component.
TidalCookieBanner.headingLevel2 | 3 | 4 | 5 | 6 | undefinedOptional heading level value accepted by this exported component.
TidalCookieBanner.policyLinkTidalCookieBannerPolicyLink | undefinedOptional policy link value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.