# Cookie consent

A consent bar that morphs into preferences and folds into a reopen button.

- ID: `cookie-consent`
- Import: `animui/cookie-consent`
- Category: Feedback
- Runtime exports: `CookieConsent`, `default`, `defaultCookieCategories`, `readCookieConsent`
- Declaration: `types/free/components/cookie-consent.d.ts`
- Type provenance: emitted-original-typescript
- Related: switch, button, announcement-bar, toast, dialog

```tsx
import { CookieConsent } from 'animui/cookie-consent';
```

This import example is not a complete render recipe: read the declaration below and its local references for required props, data, callbacks and provider context. Use `animui info cookie-consent` to resolve the local declaration graph. Global setup is in `llms.txt`.

```ts
export { CookieConsent, default, defaultCookieCategories, readCookieConsent } from '../registry/components/cookie-consent/cookie-consent.js';
export type { CookieCategory, CookieConsentAction, CookieConsentHandle, CookieConsentLabels, CookieConsentProps, CookieConsentValue, StoredCookieConsent } from '../registry/components/cookie-consent/cookie-consent.js';
```
