Testimonials Marquee
ncdai-chirags/testimonials-marqueeFreeComponent
A testimonials marquee component for showcasing user feedback in a scrolling format.
Install it
npx shadcn@latest add https://www.chirags.dev/r/testimonials-marquee.jsonSource
1import { cn } from "@/lib/utils";23export function Testimonial({4 className,5 children,6 ...props7}: React.ComponentProps<"figure">) {8 return (9 <figure10 data-slot="testimonial"11 className={cn("flex h-full flex-col", className)}12 {...props}13 >14 {children}15 </figure>16 );17}1819export function TestimonialQuote({20 className,21 children,22 ...props23}: React.ComponentProps<"blockquote">) {24 return (25 <blockquote26 data-slot="quote"27 className={cn(28 "grow px-4 py-3 text-base text-balance text-foreground italic",29 className30 )}31 {...props}32 >33 {children}34 </blockquote>35 );36}3738export function TestimonialAuthor({39 className,40 children,41 ...props42}: React.ComponentProps<"figcaption">) {43 return (44 <figcaption45 data-slot="author"46 className={cn(47 "grid grid-cols-[auto_1fr] grid-rows-2 items-center gap-x-3.5 px-4 pt-1 pb-3",48 className49 )}50 {...props}51 >52 {children}53 </figcaption>54 );55}5657export function TestimonialAvatar({58 className,59 children,60 ...props61}: React.ComponentProps<"div">) {62 return (63 <div64 data-slot="avatar"65 className={cn("relative row-span-2 size-8 shrink-0", className)}66 {...props}67 >68 {children}69 </div>70 );71}7273export function TestimonialAvatarImg({74 className,75 src,76 alt,77 ...props78}: React.ComponentProps<"img">) {79 return (80 <img81 data-slot="avatar-img"82 className={cn("size-8 rounded-full select-none", className)}83 src={src}84 alt={alt}85 {...props}86 />87 );88}8990export function TestimonialAvatarRing({91 className,92 ...props93}: React.ComponentProps<"div">) {94 return (95 <div96 data-slot="avatar-ring"97 className={cn(98 "pointer-events-none absolute inset-0 rounded-full ring-1 ring-black/10 ring-inset dark:ring-white/15",99 className100 )}101 {...props}102 />103 );104}105106export function TestimonialAuthorName({107 className,108 children,109 ...props110}: React.ComponentProps<"div">) {111 return (112 <div113 data-slot="author-name"114 className={cn(115 "text-sm leading-4 font-semibold text-foreground",116 className117 )}118 {...props}119 >120 {children}121 </div>122 );123}124125export function TestimonialAuthorTagline({126 className,127 children,128 ...props129}: React.ComponentProps<"div">) {130 return (131 <div132 data-slot="author-tagline"133 className={cn(134// … truncated
What it pulls in
Other registry items
Files it writes
More from ncdai
All 28 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Apple Hello Effectapple-hello-effect | ncdai | Components | Free | 1 dep | |
| Consent Managerconsent-manager | ncdai | Components | Free | 1 dep · 2 files | |
| Flip Sentencesflip-sentences | ncdai | Components | Free | 1 dep | |
| GitHub Starsgithub-stars | ncdai | Components | Free | no deps | |
| Scroll Fade Effectscroll-fade-effect | ncdai | Components | Free | no deps | |
| Shimmering Textshimmering-text | ncdai | Components | Free | 1 dep | |
| Slide to Unlockslide-to-unlock | ncdai | Components | Free | 1 dep | |
| Theme Switchertheme-switcher | ncdai | Components | Free | 3 deps |
