trustlabs-sdk
Version:
Easy-to-use SDK for displaying trust verification badges on websites. Supports React, Vue, vanilla JS, and CDN usage.
16 lines (15 loc) • 599 B
TypeScript
import React from 'react';
import { type TrustStatus } from '../getTrustStatus';
import '../styles/badge.css';
export interface AutoInsertTrustBadgesProps {
emails: string[];
containerRef?: React.RefObject<HTMLElement>;
onError?: (error: Error) => void;
onLoad?: (data: TrustStatus[]) => void;
}
/**
* React helper component that auto-inserts badges next to matching email text
* in the DOM (similar to the vanilla render function). Renders nothing itself.
*/
export declare const AutoInsertTrustBadges: React.FC<AutoInsertTrustBadgesProps>;
export default AutoInsertTrustBadges;