Components
TestimonialAvatars
The TestimonialAvatars component is a reusable Angular component that displays a list of user avatars alongside a star rating and a call-to-action text.
Features
- Avatar List: Dynamically displays a collection of user avatars.
- Star Rating: Includes a 5-star rating for added emphasis.
- Customizable Call-to-Action: Allows for dynamic updates to the accompanying text.
- Responsive Design: Ensures proper layout across different screen sizes.
Inputs
This component currently does not accept external inputs but relies on internally defined data:
avatars(Array): An array of avatar image URLs.reviewsText(string): The call-to-action text accompanying the avatars and star rating.
Both avatars and reviewsText can be updated in the TypeScript file for customization.
Usage
Step 1: Import the Component
Add the TestimonialAvatarsComponent to your Angular project by including it in your page or component.
Step 2: Add the Template
Include the component in your template:
Configuration
Customizing Data
Update the avatars array and reviewsText property in the TypeScript file to modify the content.
Example:
Example
Dynamic Data
You can define and dynamically update the avatars and call-to-action text:
And in your template:
Notes
- Ensure the
avatarsarray contains valid image URLs for proper rendering. - The star rating is fixed at 5 stars and cannot be modified dynamically.