Cognitive Biases / Social Proof
Social Proof
Social-proof badge showing viewing/purchasing/rating counts with optional stacked avatars. Triggers bandwagon / conformity bias.
behavioral v0.9.0
Playground
Examples
Viewing now
<bias-social-proof count="23" type="viewing" interval="now"></bias-social-proof> Purchased compact
<bias-social-proof count="1284" type="purchased" interval="today" format="compact"></bias-social-proof> Import
import { BiasSocialProof } from '@cognivo/components/bias'; // Or tree-shake: import '@cognivo/components/bias-social-proof'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 0 | Count value |
type | "viewing" | "purchased" | "rated" | "subscribed" | "viewing" | Action type |
interval | "now" | "today" | "week" | "month" | "now" | Time interval |
format | "compact" | "full" | "full" | Label verbosity |
avatars | string[] | — | Optional avatar URLs (capped at 3) |