Put the quotes, then one face per quote.
quote-rotator.tsx
TestimonialRotator
<section>| Prop | Type | Default | Description |
|---|---|---|---|
| interval | number | 8000 | Time on each quote in ms; 0 holds it. It holds under the pointer and with focus in it. |
| index | number | — | The quote that shows (controlled). |
| default | number | 0 | The quote that shows first. |
| on | — | ||
| locale | string | — | The BCP 47 locale of the slide names. Default: the DisplayLocaleProvider, else "en-US". |
| labels | — | ||
| ...props | <section> attributes | — | Every other attribute goes to the <section>, with a ref. |
TestimonialRotatorContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TestimonialRotatorFaces
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TestimonialRotatorFace
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| class | string | — | |||||
| name | string | — | The person's name: the seed of the face and the name of the button. | ||||
| src | string | — | A photo; the Open Peeps face shows while it loads and when there is none. | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
| Tab | Moves through the faces. |
|---|---|
| Enter | Shows the quote of that face. |
| Space | Shows the quote of that face. |
Built with
Installs with Testimonial Rotator
- Components
- Testimonial









