86 Pro components and page blocks

Get Pro

Testimonial Orbit

New

Preview

Customize

Interval5000ms
Speed6°/s
Size520px

Installation

npx shadcn@latest add https://uibrik.com/r/testimonial-orbit.json
Adds the files to components/uibrik/testimonial-orbit and installs motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/testimonial-orbit.

Usage

import { TestimonialOrbit } from "@/components/uibrik/testimonial-orbit/testimonial-orbit";​<TestimonialOrbit  autoplay  interval={5000}  speed={6}  size={520}  guide  defaultValue={0}  label="Testimonials"  // testimonials={[{ quote: "…", name: "…", avatar: "…" }]}  // value={0}  // onChange={(index) => {}}/>

Props

TestimonialOrbit
autoplay
Type boolean
true
Step to the next person on its own. Holds while the pointer or focus is inside, and off screen.
interval
Type number
5000
Time on each quote with autoplay.
speed
Type number
6
How fast the ring turns. 0 holds it still. Eases to a stop while pointed at.
size
Type number
520
Height of the orbit. The width fills the container up to the same size.
guide
Type boolean
true
Draw the ring line.
testimonials
Type { quote: string; name: string; role?: string; avatar: string }[]
SAMPLE_TESTIMONIALS
The people on the ring, in order.
value / onChange
Type number / (index) => void
–
Controlled quote in the middle.
defaultValue
Type number
0
Quote in the middle to begin with.
label
Type string
"Testimonials"
Names the group for screen readers.
className
Type string
–
Classes for the wrapper.