@openpolicy/react

React components and hooks for OpenPolicy

render-policies

frameworkreact
232 linesSource

Render OpenPolicy privacy and cookie policy documents as React components using @openpolicy/react. Components — PrivacyPolicy, CookiePolicy — read config from the OpenPolicyProvider (alias OpenPolicy) context and accept optional config and components props for per-page overrides and full rendering customization via PolicyComponents.