ConsentBannerDefault
function ConsentBannerDefault(props): ElementDefined 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
| Parameter | Type |
|---|---|
props | ConsentBannerDefaultProps |
Returns
Element
Example
import config from './consent.config'<ConsentBannerDefault policyUrl={config.policy?.url} />