Components
PricingComponent
The PricingComponent is an Angular component designed to display pricing cards with feature lists, prices, and call-to-action buttons. It supports discounts, highlights, and interactive icons for an engaging presentation.
Features
- Pricing Tiers: Displays multiple pricing options with individual features.
- Highlighting: Supports highlighting specific plans to draw attention (e.g., "Bestseller").
- Feature Icons: Uses Lucide icons for feature availability (checkmark or cross).
- Responsive Design: Adjusts layout dynamically based on the number of pricing cards and screen size.
- Call-to-Action Buttons: Includes customizable buttons with links for purchasing or learning more.
Usage
Step 1: Import the Component
Include the PricingComponent in your Angular module or component.
Step 2: Add the Template
Add the PricingComponent in your HTML template:
Configuration
Data Interface
The component accepts an array of pricing card data defined using the PricingCardData interface.
Interface Definition
Example Data
Icons and Highlighting
Feature Icons
The component uses the Lucide Angular library for feature availability icons:
- Check (
Checkicon): Indicates the feature is included. - Cross (
Xicon): Indicates the feature is unavailable.
Example Import
Highlighting Plans
To highlight a specific plan:
- Set
isHighlighted: truein the pricing card data. - Optionally, include a
highlightedTextproperty for custom text (e.g., "🔥 Bestseller").