# consent (/themes/sdk/reference/consent)

```ts
import { … } from '@poltura/theme-sdk/consent';
```

## [Hooks](/themes/sdk/reference/consent/hooks) [#hooks]

| Name | What it is |
| --- | --- |
| [`useConsent`](/themes/sdk/reference/consent/hooks#useconsent) | The shopper's cookie consent. |

## [Parts](/themes/sdk/reference/consent/parts) [#parts]

| Name | What it is |
| --- | --- |
| [`ConsentBanner`](/themes/sdk/reference/consent/parts#consentbanner) | The cookie banner. |
| [`ConsentPreferences`](/themes/sdk/reference/consent/parts#consentpreferences) | The preferences panel. |
| [`ConsentToggle`](/themes/sdk/reference/consent/parts#consenttoggle) | One category's switch. |
| [`ConsentSettingsLink`](/themes/sdk/reference/consent/parts#consentsettingslink) | Opens the preferences panel. |
| [`ConsentCookieTable`](/themes/sdk/reference/consent/parts#consentcookietable) | The store's cookies. |

## [Defaults](/themes/sdk/reference/consent/defaults) [#defaults]

| Name | What it is |
| --- | --- |
| [`Consent`](/themes/sdk/reference/consent/defaults#consent) | The complete cookie consent: the banner until the shopper chooses and the preferences panel while it is open. |

## [Types](/themes/sdk/reference/consent/types-1) [#types]

| Name | What it is |
| --- | --- |
| [`ConsentCategory`](/themes/sdk/reference/consent/types-1#consentcategory) | A cookie category. |
| [`ConsentChoice`](/themes/sdk/reference/consent/types-1#consentchoice) | A choice per category. |
| [`ConsentLink`](/themes/sdk/reference/consent/types-1#consentlink) | A link the banner offers, such as the cookie policy. |
| [`ConsentCookieTableTexts`](/themes/sdk/reference/consent/types-1#consentcookietabletexts) | A cookie table's headings. |
| [`ConsentTexts`](/themes/sdk/reference/consent/types-1#consenttexts) | The banner and panel texts. |
| [`ConsentLayout`](/themes/sdk/reference/consent/types-1#consentlayout) | The banner's shape. |
| [`ConsentPosition`](/themes/sdk/reference/consent/types-1#consentposition) | Where the banner sits. |
| [`ConsentColors`](/themes/sdk/reference/consent/types-1#consentcolors) | The banner's colours. |
| [`ConsentAppearance`](/themes/sdk/reference/consent/types-1#consentappearance) | The banner's settings. |
| [`ConsentCookie`](/themes/sdk/reference/consent/types-1#consentcookie) | A cookie the store may set, listed under its category in the preferences panel. |
| [`ConsentCategoryInfo`](/themes/sdk/reference/consent/types-1#consentcategoryinfo) | A category as listed. |
| [`ConsentState`](/themes/sdk/reference/consent/types-1#consentstate) | The shopper's consent, the banner's wording and look, and the actions that record a choice. |
| [`ConsentBannerClassKey`](/themes/sdk/reference/consent/types-1#consentbannerclasskey) | The banner's stylable parts. |
| [`ConsentBannerProps`](/themes/sdk/reference/consent/types-1#consentbannerprops) | Props of [`ConsentBanner`](/themes/sdk/reference/consent/parts#consentbanner). |
| [`ConsentPreferencesClassKey`](/themes/sdk/reference/consent/types-1#consentpreferencesclasskey) | The panel's stylable parts. |
| [`ConsentPreferencesProps`](/themes/sdk/reference/consent/types-1#consentpreferencesprops) | Props of [`ConsentPreferences`](/themes/sdk/reference/consent/parts#consentpreferences). |
| [`ConsentToggleProps`](/themes/sdk/reference/consent/types-1#consenttoggleprops) | Props of [`ConsentToggle`](/themes/sdk/reference/consent/parts#consenttoggle). |
| [`ConsentSettingsLinkProps`](/themes/sdk/reference/consent/types-2#consentsettingslinkprops) | Props of [`ConsentSettingsLink`](/themes/sdk/reference/consent/parts#consentsettingslink). |
| [`ConsentCookieTableClassKey`](/themes/sdk/reference/consent/types-2#consentcookietableclasskey) | Table parts to style. |
| [`ConsentCookieTableProps`](/themes/sdk/reference/consent/types-2#consentcookietableprops) | Props of [`ConsentCookieTable`](/themes/sdk/reference/consent/parts#consentcookietable). |
| [`ConsentProps`](/themes/sdk/reference/consent/types-2#consentprops) | Props of [`Consent`](/themes/sdk/reference/consent/defaults#consent). |

<AnchorRedirect to={{"hooks":"/themes/sdk/reference/consent/hooks","useconsent":"/themes/sdk/reference/consent/hooks","parts":"/themes/sdk/reference/consent/parts","consentbanner":"/themes/sdk/reference/consent/parts","consentpreferences":"/themes/sdk/reference/consent/parts","consenttoggle":"/themes/sdk/reference/consent/parts","consentsettingslink":"/themes/sdk/reference/consent/parts","consentcookietable":"/themes/sdk/reference/consent/parts","defaults":"/themes/sdk/reference/consent/defaults","consent":"/themes/sdk/reference/consent/defaults","types":"/themes/sdk/reference/consent/types-1","consentcategory":"/themes/sdk/reference/consent/types-1","consentchoice":"/themes/sdk/reference/consent/types-1","consentlink":"/themes/sdk/reference/consent/types-1","consentcookietabletexts":"/themes/sdk/reference/consent/types-1","consenttexts":"/themes/sdk/reference/consent/types-1","consentlayout":"/themes/sdk/reference/consent/types-1","consentposition":"/themes/sdk/reference/consent/types-1","consentcolors":"/themes/sdk/reference/consent/types-1","consentappearance":"/themes/sdk/reference/consent/types-1","consentcookie":"/themes/sdk/reference/consent/types-1","consentcategoryinfo":"/themes/sdk/reference/consent/types-1","consentstate":"/themes/sdk/reference/consent/types-1","consentbannerclasskey":"/themes/sdk/reference/consent/types-1","consentbannerprops":"/themes/sdk/reference/consent/types-1","consentpreferencesclasskey":"/themes/sdk/reference/consent/types-1","consentpreferencesprops":"/themes/sdk/reference/consent/types-1","consenttoggleprops":"/themes/sdk/reference/consent/types-1","consentsettingslinkprops":"/themes/sdk/reference/consent/types-2","consentcookietableclasskey":"/themes/sdk/reference/consent/types-2","consentcookietableprops":"/themes/sdk/reference/consent/types-2","consentprops":"/themes/sdk/reference/consent/types-2"}} />
