ConsentDialogTrigger

A floating, draggable button that lets users re-open the consent dialog at any time.

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 persistence
  • ConsentDialogTrigger.Button — Draggable button element with size variants
  • ConsentDialogTrigger.Icon — Icon display (branding, fingerprint, settings, or custom)
  • ConsentDialogTrigger.Text — Optional text label

Props

Loading…