FeatureCards
The FeatureCards component is an Angular component designed to showcase a collection of features with icons, descriptions, and time-saving benefits.
Features
- Icon-Based Representation: Displays each feature with a meaningful and visually appealing icon.
- Time-Saving Highlights: Includes labels for the hours saved by each feature.
- Customizable Feature List: The
featuresarray can be modified to add or remove feature cards. - Responsive Grid Layout: Adapts to different screen sizes for an optimized viewing experience.
- Engaging Design: Combines modern styles and dynamic elements to attract user attention.
- Lucide Icon Library: Uses the Lucide library for scalable, customizable icons.
Usage
Step 1: Import the Component
Add the FeatureCardsComponent to your Angular project by including it in your module or component imports array.
Step 2: Add the Template
Include the component in your template:
Configuration
Feature Data Interface
The features are defined using the FeatureCardData interface. This ensures consistent structure and easy extensibility.
Interface Definition
Example Features Array
Icon Library
The FeatureCardsComponent uses icons from the Lucide Angular library. To use icons, import them into your component:
Example Icon Import
You can assign these icons to the icon property in the FeatureCardData array.
Default Icon Color
The component provides a default icon color (#FF6B6B). However, you can override it for specific features by setting the iconColor property.
Example
If no iconColor is specified, the default color will be applied.