X Enterprises
nuxt-x-marketing

SocialProof

Social proof components — testimonial carousels and grids, trust badge presets, and a live activity toast notification.

SocialProof

Social proof components help build trust at critical conversion points. XMarkSocialProofTestimonials showcases customer quotes with photos and star ratings. XMarkSocialProofBadge surfaces concise trust signals near pricing and CTA sections. XMarkSocialProofToast creates live-activity FOMO by cycling through recent user actions as floating toasts.

Components

<XMarkSocialProofTestimonials />

Three layout modes are available: featured (single large quote with previous/next arrows), grid (card masonry), and carousel (horizontally scrolling strip). All modes support star ratings.

<XMarkSocialProofTestimonials
  layout="grid"
  :has-stars="true"
  :testimonials="[
    {
      name: 'Sarah K.',
      title: 'CTO',
      company: 'Acme Corp',
      quote: 'This tool cut our deployment time in half. Absolutely indispensable.',
      rating: 5,
      avatar: '/avatars/sarah.jpg',
    },
    {
      name: 'James T.',
      title: 'Lead Developer',
      company: 'StartupXYZ',
      quote: 'The DX is miles ahead of anything else we tried.',
      rating: 5,
    },
  ]"
/>

Featured carousel with auto-advance:

<XMarkSocialProofTestimonials
  layout="featured"
  :auto-play="true"
  :auto-play-interval="5000"
  :testimonials="testimonials"
/>

Props

PropTypeDefaultDescription
testimonialsArray[]Testimonial objects [{ name, title?, company?, quote, rating?, avatar? }]
layoutString'featured'Display mode: 'featured', 'grid', 'carousel'
hasStarsBooleantrueShow star rating icons
autoPlayBooleanfalseAuto-advance featured/carousel layout
autoPlayIntervalNumber5000Milliseconds between auto-advances

<XMarkSocialProofBadge />

A compact inline trust signal. Use preset for one of eight built-in badges, or provide a custom icon and label. Designed to be used in groups near pricing cards, CTA buttons, or form fields.

<!-- Using presets -->
<div class="flex gap-4">
  <XMarkSocialProofBadge preset="no-credit-card" />
  <XMarkSocialProofBadge preset="cancel-anytime" />
  <XMarkSocialProofBadge preset="secure" />
</div>

<!-- Custom badge -->
<XMarkSocialProofBadge
  icon="i-lucide-award"
  label="G2 Leader 2025"
  variant="subtle"
/>

Props

PropTypeDefaultDescription
presetString''Built-in preset: 'no-credit-card', 'cancel-anytime', 'free-trial', 'secure', 'support', 'setup', 'gdpr', 'money-back'
iconString''Custom Lucide icon name (when not using a preset)
labelString''Custom label text (when not using a preset)
variantString'default'Style variant: 'default', 'subtle', 'outline', 'text', 'text-muted'

<XMarkSocialProofToast />

A fixed-position floating notification that cycles through a list of recent activity items (signups, upgrades, trials). Each notification shows for displayDuration ms before fading out, then the next one appears after interval ms. The first notification is delayed by initialDelay ms to avoid competing with page load animations.

<XMarkSocialProofToast
  :notifications="[
    { name: 'Alex M.', action: 'just signed up', time: '2 minutes ago' },
    { name: 'Sarah K.', action: 'upgraded to Pro', time: '5 minutes ago', avatar: '/avatars/sarah.jpg' },
    { name: 'James T.', action: 'started a free trial', time: '8 minutes ago' },
  ]"
  placement="bottomLeft"
  type="success"
  :interval="4000"
  :initial-delay="5000"
  :display-duration="3000"
  :show-icon="true"
/>

Props

PropTypeDefaultDescription
notificationsArray3 example notificationsNotification objects [{ name, action, time, avatar? }]
intervalNumber4000Milliseconds between notifications
initialDelayNumber5000Delay before first notification appears (ms)
displayDurationNumber3000How long each notification is visible (ms)
placementString'topRight'Screen corner: 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'
typeString'success'Icon theme: 'success', 'error', 'warning', 'info'
showIconBooleantrueShow status icon in the toast

AI Context

category: SocialProof
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkSocialProofTestimonials
  - XMarkSocialProofBadge
  - XMarkSocialProofToast
use-when: >
  Building trust and reducing conversion friction. Use Testimonials near
  pricing or after the features section, Badges directly adjacent to CTA
  buttons and pricing cards, and Toast to add live-activity urgency.
typical-page-section: >
  Testimonials: between features and pricing. Badges: near pricing and CTA.
  Toast: persistent overlay, visible site-wide on key pages.
Copyright © 2026