Testimonial
Showcase positive feedback from users
Use the Testimonial
component to showcase positive feedback or endorsements from customers, clients, or users.
"Add user testimonies to improve trustworthiness"

Unlock code How to use the Testimonial component in Astro
<Testimonial text='"Add user testimonies to improve trustworthiness"' name="Nicole Williams" role="Developer" avatar={{ img: '/img/avatar2.png', alt: 'Nicole' }}/>
To use the Testimonial
component, you must specify a text
and a name
prop. You can also specify the following additional props to customize the look of your component:
role
: Sets a role for the reviewer after thename
.avatar
: Sets the avatar of the reviewer.showIcon
: By default, a quote icon is shown at the top of the testimonial. You can hide this by setting this prop tofalse
.
"Add user testimonies to improve trustworthiness"
Nicole Williams
"Add user testimonies to improve trustworthiness"

Unlock code No avatar will be displayed
<Testimonial text='"Add user testimonies to improve trustworthiness"' name="Nicole Williams"/>
Unlock code How to hide icon
<Testimonial showIcon={false} .../>
API
Unlock code Component API reference
type TestimonialProps = { text: string name: string avatar?: AvatarProps showIcon?: boolean role?: string className?: string}
Please see the documentation of the
Avatar
component for AvatarProps
. Prop | Purpose |
---|---|
text | Sets the text for the testimonial. |
name | Sets the name of the reviewer. |
avatar | Sets an avatar for the reviewer. |
showIcon | Shows a quote icon above the testimony. |
role | Sets the role of the reviewer. |
className | Pass additional CSS classes for the component. |