consent
Ez az oldal még csak angolul érhető el.
Cookie consent: the shopper's choice and the actions that record it.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/consent';Hooks
| Name | What it is |
|---|---|
useConsent | The shopper's cookie consent. |
Parts
| Name | What it is |
|---|---|
ConsentBanner | The cookie banner. |
ConsentPreferences | The preferences panel. |
ConsentToggle | One category's switch. |
ConsentSettingsLink | Opens the preferences panel. |
ConsentCookieTable | The store's cookies. |
Defaults
| Name | What it is |
|---|---|
Consent | The complete cookie consent: the banner until the shopper chooses and the preferences panel while it is open. |
Types
| Name | What it is |
|---|---|
ConsentCategory | A cookie category. |
ConsentChoice | A choice per category. |
ConsentLink | A link the banner offers, such as the cookie policy. |
ConsentCookieTableTexts | A cookie table's headings. |
ConsentTexts | The banner and panel texts. |
ConsentLayout | The banner's shape. |
ConsentPosition | Where the banner sits. |
ConsentColors | The banner's colours. |
ConsentAppearance | The banner's settings. |
ConsentCookie | A cookie the store may set, listed under its category in the preferences panel. |
ConsentCategoryInfo | A category as listed. |
ConsentState | The shopper's consent, the banner's wording and look, and the actions that record a choice. |
ConsentBannerClassKey | The banner's stylable parts. |
ConsentBannerProps | Props of ConsentBanner. |
ConsentPreferencesClassKey | The panel's stylable parts. |
ConsentPreferencesProps | Props of ConsentPreferences. |
ConsentToggleProps | Props of ConsentToggle. |
ConsentSettingsLinkProps | Props of ConsentSettingsLink. |
ConsentCookieTableClassKey | Table parts to style. |
ConsentCookieTableProps | Props of ConsentCookieTable. |
ConsentProps | Props of Consent. |