CodingLaboratory
Lab Commands
Enter The Lab

Component Lab / marketing-content / spotlight-testimonial-carousel

Stable release
Back to category

Open experiment

Spotlight testimonial carousel

A focused quote component that shows one attributed story at a time without autoplay. Previous, next, direct-slide buttons, and region arrow keys all update the same readable content and position announcement.

Lab tested Responsive Dark mode Interactive
Version
1.0.0
Updated
2026-08-02
Dependencies
Zero
Live canvasInstant token updates
Source filesEditable and export-ready
<section
  class="cmp-testimonial-spotlight"
  tabindex="0"
  role="region"
  aria-roledescription="carousel"
  aria-label="Customer stories"
>
  <div class="cmp-testimonial-spotlight__beam" aria-hidden="true"></div>
  <header><span>Story 01</span><b>Page Kit people</b></header>
  <blockquote>
    <span aria-hidden="true">“</span>
    <p>
      The tiny interactions made our product feel considered before we wrote a single animation from
      scratch.
    </p>
    <footer><strong>Leila Morgan</strong><small>Product lead · Northstar</small></footer>
  </blockquote>
  <div class="cmp-testimonial-spotlight__controls">
    <button type="button" data-prev aria-label="Previous testimonial">←</button>
    <div role="group" aria-label="Choose testimonial">
      <button type="button" data-slide="0" aria-label="Testimonial 1" aria-pressed="true"></button
      ><button type="button" data-slide="1" aria-label="Testimonial 2" aria-pressed="false"></button
      ><button
        type="button"
        data-slide="2"
        aria-label="Testimonial 3"
        aria-pressed="false"
      ></button>
    </div>
    <button type="button" data-next aria-label="Next testimonial">→</button>
  </div>
  <span class="cmp-testimonial-spotlight__status" aria-live="polite">Testimonial 1 of 3</span>
</section>
No runtime reactions detected Open in Editor

Validated in the lab

Experiment report

  • Schema and source files passed
  • Responsive test passed
  • Keyboard test passed
  • No console errors

Component ingredients

Dependencies
None
Browser support
Current Chrome, Current Edge, Current Firefox, Current Safari
Version
1.0.0
Last tested
2026-08-02

Accessibility notes

  • The labelled carousel region never advances automatically.
  • Current position and author changes are politely announced.
  • Previous, next, direct selection, and region arrow keys are supported.

License: MIT License for open-source use, modification, and distribution.