Testimonials 01
flx/testimonials-01FreeBlock
A single testimonial with quote, avatar, author name and role.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/testimonials-01.jsonSource
1import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'23export interface Testimonials01Props {4 quote: string5 author: {6 name: string7 role: string8 avatar: {9 src?: string10 alt?: string11 fallback: string12 }13 }14}1516export function Testimonials01({17 quote,18 author,19}: Readonly<Testimonials01Props>) {20 return (21 <div className="mx-auto flex max-w-3xl flex-col gap-7 rounded-3xl text-center">22 <p className="text-xl leading-tight font-medium tracking-tight md:text-[2rem]">23 "{quote}"24 </p>2526 <div className="flex items-center justify-center gap-4">27 <Avatar size="default" className="md:data-[size=default]:size-10">28 <AvatarImage29 src={author.avatar.src}30 alt={author.avatar.alt ?? author.name}31 />32 <AvatarFallback>{author.avatar.fallback}</AvatarFallback>33 </Avatar>3435 <div className="flex flex-col items-start text-left">36 <p className="text-sm font-semibold md:text-base">{author.name}</p>37 <p className="text-muted-foreground text-xs md:text-sm">38 {author.role}39 </p>40 </div>41 </div>42 </div>43 )44}
What it pulls in
Other registry items
Files it writes
More from flx
All 446 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Basicaccordion-01 | flx | Blocks | Free | no deps | |
| Multipleaccordion-02 | flx | Blocks | Free | no deps | |
| With iconsaccordion-03 | flx | Blocks | Free | no deps | |
| FAQaccordion-04 | flx | Blocks | Free | no deps | |
| Separated cardsaccordion-05 | flx | Blocks | Free | no deps | |
| Plus / minus iconaccordion-06 | flx | Blocks | Free | 1 dep | |
| Left chevronaccordion-07 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps |
