Skip to content

ConsentBannerDefault

function ConsentBannerDefault(props): Element

Defined in: packages/banner-default/src/react/banner.tsx:45

Drop-in styled consent banner. Mounts itself only when the headless <ConsentBanner> says it should be open. Click “Customise” to expand a per-category modal.

Parameters

ParameterType
propsConsentBannerDefaultProps

Returns

Element

Example

import config from './consent.config'
<ConsentBannerDefault policyUrl={config.policy?.url} />