AsterUIDocsv1.0.2

Docs / Component reference

ConsentBanner

Offer a choice between essential cookies and the full set. The application decides how to store and honor the answer.

Install

sh
npx @fierst/ui@1.0.2 add banner-cookie

Registry dependencies: theme, button.

Exports from ./ui/banner-cookie: ConsentBanner.

Download the registry source for banner-cookie 1.0.2.

API contracts

ts
export function* ConsentBanner(
  props: {
    title?: string;
    description?: string;
    onAccept?: () => void;
    onDecline?: () => void;
    class?: string;
  },
  ctx: Ctx,
)