Rights Center — npm package
The @truconsent/consent-notice package includes the <RightCenter /> component — a pre-built UI for DPDPA data subject rights on the web. It lets users view their consents, withdraw them, file grievances, manage nominees, and access data rights guaranteed by Sections 6 and 11–14 of the DPDPA.
For full integration details — installation, props, customisation, and user ID handling — see the Rights Center — Web page.
Quick start
Section titled “Quick start”npm install @truconsent/consent-noticeimport { RightCenter } from '@truconsent/consent-notice';import '@truconsent/consent-notice/dist/consent-modal.css';
export default function PrivacyPage() { return ( <RightCenter userId={currentUser.id} apiKey={import.meta.env.VITE_TRU_CONSENT_API_KEY} organizationId={import.meta.env.VITE_TRU_CONSENT_ORGANIZATION_ID} apiUrl={import.meta.env.VITE_TRU_CONSENT_API_URL} assetId={import.meta.env.VITE_TRU_CONSENT_ASSET_ID} /> );}Other platforms
Section titled “Other platforms”| Platform | Guide |
|---|---|
| iOS | Rights Center — iOS |
| Android | Rights Center — Android |
| Flutter | Rights Center — Flutter |
| React Native | Rights Center — React Native |