Initial commit
This commit is contained in:
122
registry/components/PricingCardOne.json
Normal file
122
registry/components/PricingCardOne.json
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"name": "PricingCardOne",
|
||||
"description": "Pricing card with badge, price, subtitle, and feature list with checkmarks.",
|
||||
"details": "Use for displaying pricing plans with clear feature breakdowns. Layout: Badge (with optional icon) → Price (large, bold) → Subtitle (plan description) → Divider → Feature List (with check icons). All cards must have badge, subtitle, and features for visual consistency. Best for pricing, subscription plans, or tiered services. Automatically switches between grid (1-4 items) and carousel (5+ items). Optional header with title, description, tag, and buttons.",
|
||||
"constraints": {
|
||||
"textRules": {
|
||||
"title": {
|
||||
"required": true,
|
||||
"example": "Choose Your Plan",
|
||||
"minChars": 2,
|
||||
"maxChars": 35
|
||||
},
|
||||
"description": {
|
||||
"required": true,
|
||||
"example": "Select the perfect plan for your needs",
|
||||
"minChars": 5,
|
||||
"maxChars": 250
|
||||
},
|
||||
"tag": {
|
||||
"required": false,
|
||||
"example": "Pricing",
|
||||
"minChars": 2,
|
||||
"maxChars": 30
|
||||
}
|
||||
},
|
||||
"pricingPlanRules": {
|
||||
"id": {
|
||||
"required": true,
|
||||
"example": "1",
|
||||
"minChars": 1,
|
||||
"maxChars": 20
|
||||
},
|
||||
"badge": {
|
||||
"required": true,
|
||||
"example": "Most Popular",
|
||||
"minChars": 2,
|
||||
"maxChars": 30,
|
||||
"note": "Required for visual consistency across all cards"
|
||||
},
|
||||
"price": {
|
||||
"required": true,
|
||||
"example": "$29/mo",
|
||||
"minChars": 1,
|
||||
"maxChars": 20
|
||||
},
|
||||
"subtitle": {
|
||||
"required": true,
|
||||
"example": "Perfect for small teams",
|
||||
"minChars": 5,
|
||||
"maxChars": 100,
|
||||
"note": "Required for visual consistency across all cards"
|
||||
},
|
||||
"features": {
|
||||
"required": true,
|
||||
"example": [
|
||||
"Up to 10 team members",
|
||||
"100GB storage",
|
||||
"Priority support"
|
||||
],
|
||||
"note": "Array of feature strings, required for visual consistency"
|
||||
},
|
||||
"badgeIcon": {
|
||||
"required": false,
|
||||
"example": "Sparkles",
|
||||
"note": "Optional Lucide icon to display next to badge"
|
||||
}
|
||||
}
|
||||
},
|
||||
"propsSchema": {
|
||||
"plans": "Array<{ id: string, badge: string, badgeIcon?: LucideIcon, price: string, subtitle: string, features: string[] }>",
|
||||
"carouselMode?": "'auto' | 'buttons' (default: 'buttons')",
|
||||
"uniformGridCustomHeightClasses?": "string",
|
||||
"animationType": "'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal' | 'depth-3d'",
|
||||
"title": "string",
|
||||
"titleSegments?": "Array<{ type: 'text', content: string } | { type: 'image', src: string, alt?: string }> - For inline images in title",
|
||||
"description": "string",
|
||||
"tag?": "string",
|
||||
"tagIcon?": "LucideIcon",
|
||||
"tagAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'",
|
||||
"buttons?": "Array<{text: string, onClick?: () => void, href?: string}>",
|
||||
"buttonAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'",
|
||||
"textboxLayout": "'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image' (required - 'inline-image' uses titleSegments for rich text with images)",
|
||||
"useInvertedBackground": "boolean",
|
||||
"ariaLabel?": "string (default: 'Pricing section')",
|
||||
"className?": "string",
|
||||
"containerClassName?": "string",
|
||||
"cardClassName?": "string",
|
||||
"textBoxTitleClassName?": "string",
|
||||
"textBoxTitleImageWrapperClassName?": "string - For styling image wrapper in inline-image layout",
|
||||
"textBoxTitleImageClassName?": "string - For styling images in inline-image layout",
|
||||
"textBoxDescriptionClassName?": "string",
|
||||
"badgeClassName?": "string",
|
||||
"priceClassName?": "string",
|
||||
"subtitleClassName?": "string",
|
||||
"featuresClassName?": "string",
|
||||
"featureItemClassName?": "string",
|
||||
"gridClassName?": "string",
|
||||
"carouselClassName?": "string",
|
||||
"controlsClassName?": "string",
|
||||
"textBoxClassName?": "string",
|
||||
"textBoxTagClassName?": "string",
|
||||
"textBoxButtonContainerClassName?": "string",
|
||||
"textBoxButtonClassName?": "string",
|
||||
"textBoxButtonTextClassName?": "string"
|
||||
},
|
||||
"usageExample": "<PricingCardOne plans={[{ id: '1', badge: 'Most Popular', price: '$29/mo', subtitle: 'Perfect for small teams', features: ['Up to 10 team members', '100GB storage', 'Priority support'] }]} title=\"Choose Your Plan\" description=\"Find the perfect plan for your needs\" textboxLayout=\"default\" animationType=\"slide-up\" useInvertedBackground={false} />",
|
||||
"do": [
|
||||
"Use for feature showcases",
|
||||
"Use for capability displays",
|
||||
"Use for pricing pages",
|
||||
"Use for subscription tiers",
|
||||
"Requires plans[]",
|
||||
"Requires titleSegments?[]",
|
||||
"Requires buttons?[]"
|
||||
],
|
||||
"dont": [],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user