Testimonial
Display customer testimonials with consistent styling and flexible composition. Perfect for landing pages, marketing sections, and anywhere you need to showcase social proof.
Built with compound components for maximum flexibility—mix and match Quote, Author, Avatar, Name, and Role to create any testimonial layout.
Installation
shellUsage
tsxAnatomy
Testimonial is a compound component with these parts:
tsxProps
Testimonial.Root
Main container for testimonial content. Extends Kookie UI's Flex component.
All other Flex props from Kookie UI are supported.
Testimonial.Quote
The quote text. Extends Kookie UI's Heading component. Automatically wraps content in quotation marks.
All other Heading props from Kookie UI are supported.
Testimonial.Author
Container for author information. Extends Kookie UI's Flex component.
All other Flex props from Kookie UI are supported.
Testimonial.Avatar
Author's avatar image. Extends Kookie UI's Avatar component.
All other Avatar props from Kookie UI are supported.
Testimonial.Name
Author's name. Extends Kookie UI's Text component.
All other Text props from Kookie UI are supported.
Testimonial.Role
Author's role or designation. Extends Kookie UI's Text component.
All other Text props from Kookie UI are supported.
Testimonial.Details
Container for name and role. Extends Kookie UI's Flex component.
All other Flex props from Kookie UI are supported.
Examples
Basic Testimonial
Simple centered testimonial with quote and author:
tsxWith Avatar Image
Include an avatar image for visual credibility:
tsxLeft-Aligned
Align content to the start for editorial layouts:
tsxHorizontal Author Layout
Display author info in a row instead of column:
tsxWith Custom Styling
Customize sizes and spacing:
tsxIn Section and Container
Combine with Kookie UI layout components:
tsxAccessibility
Testimonial provides semantic HTML structure for screen readers:
Semantic HTML
Testimonial.Quoteuses<h1>by default (customizable withasprop)- Proper heading hierarchy preserved
- Semantic Flex container structure
Screen Readers
- Quote announces as heading with appropriate level
- Logical reading order maintained by flex layout
- Author information provides context for the quote
Changelog
Added
- Initial release with compound component architecture
- Added
Testimonial.Root,Testimonial.Quote,Testimonial.Author,Testimonial.Avatar,Testimonial.Name,Testimonial.Role,Testimonial.Detailscomponents - Built-in sensible defaults while maintaining full customization
- Support for left, center, right alignment
- Automatic quotation marks around quote text