useGVLData

Hook to access processed Global Vendor List (GVL) data for building custom IAB TCF UI components.

Info

c15t is not yet IAB certified. The IAB TCF components are under active development and should not be used in production. APIs and behavior may change before certification is achieved.

useGVLData() processes the raw IAB Global Vendor List (GVL) into a UI-friendly format. It handles purpose grouping into stacks, vendor mapping, special purpose/feature extraction, and loading state.

Use this hook when building a custom IAB TCF UI instead of the pre-built IABConsentDialog.

Info

Must be used within a ConsentManagerProvider with IAB mode enabled. Returns empty data if IAB is not configured.

Return Value

The hook returns a GVLData object:

Loading…

Types

ProcessedPurpose

Loading…

ProcessedVendor

Loading…

ProcessedStack

Loading…

ProcessedSpecialFeature

Loading…