Testimonial

A quote and who said it, with a picture or their initials: a figure, a blockquote and a caption.

It reads as a quote anywhere, because it is one.
Ada ExampleSomeone who said it

Features

  • A figure with a blockquote and a caption, so it reads as a quote anywhere.
  • A picture, or initials when there is none.
  • No state: renders on the server.

Use it for

  • Testimonials, reviews, pull quotes with a person.

Installation

  1. Get runets.
    git clone https://github.com/ziyam-khan/runets
  2. Copy these files into your project, keeping their folders.
  3. Install what they use.
    pnpm add react
  4. Load the styles once. Bring your own base tokens, or use runets’ default theme.
    import 'runets/styles/theme.css'
    import 'runets/styles/kit.css'

API

PropTypeWhat it does
quoteReactNodeWhat they said.
name / rolestringWho said it.
avatarstringAn image URL.

Accessibility

Source

The code is in src/kit/testimonial.tsx in runets, MIT licensed.