TidalUI

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

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/cookie-banner

Import components/ui/tidal.css, components/ui/cookie-banner.css. Wrap installed components in tidal-scope.

Preview

Cookie banner component preview

Open interactive 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)
ReactNode

Required description value accepted by this exported component.

TidalCookieBanner.title (required)
ReactNode

Required title value accepted by this exported component.

TidalCookieBanner.actionsLabel
string | undefined

Optional actions label value accepted by this exported component.

TidalCookieBanner.badge
ReactNode

Optional badge value accepted by this exported component.

TidalCookieBanner.detail
ReactNode

Optional detail value accepted by this exported component.

TidalCookieBanner.emptyActionsMessage
ReactNode

Optional empty actions message value accepted by this exported component.

TidalCookieBanner.headingLevel
2 | 3 | 4 | 5 | 6 | undefined

Optional heading level value accepted by this exported component.

TidalCookieBanner.policyLink
TidalCookieBannerPolicyLink | undefined

Optional policy link value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas