Documentation
ConsentDialogTrigger
ConsentDialogTrigger is a floating button that opens the consent dialog when clicked. Users can drag it to any corner of the screen, and the position persists across sessions. Use it to give users a persistent way to manage their privacy settings.
Basic Usage
Use standalone or via the showTrigger prop on ConsentDialog:
For inline footer links (instead of a floating button), use ConsentDialogLink.
Icon Options
Visibility
Control when the trigger is visible:
Position
Set the default corner and control persistence:
Size
Compound Components
Build fully custom trigger layouts using sub-components:
ConsentDialogTrigger.Root— Portal wrapper with drag handling and position persistenceConsentDialogTrigger.Button— Draggable button element with size variantsConsentDialogTrigger.Icon— Icon display (branding, fingerprint, settings, or custom)ConsentDialogTrigger.Text— Optional text label
Props
AutoTypeTable Error
No type data generated. Verify the path/name and ensure the file is readable from the configured basePath.
Path: ./packages/react/src/components/consent-dialog-trigger/types.ts
Name: ConsentDialogTriggerProps