Files
523d86cf-fa5d-4c67-8d6d-bd0…/registry/components/SocialProofOne.json
2026-04-11 13:46:39 +00:00

88 lines
3.5 KiB
JSON

{
"name": "SocialProofOne",
"description": "Social proof section with scrolling marquee displaying company names with optional card styling.",
"details": "Use for displaying partner/client names in an infinite scrolling marquee. Features a header section with optional tag, title, description, and buttons. Names are auto-repeated 3x for seamless loop. Card styling can be toggled via showCard prop. Speed of marquee is configurable. Ideal for building trust through social proof on landing pages.",
"constraints": {
"textRules": {
"title": {
"required": true,
"example": "Trusted by Industry Leaders",
"minChars": 2,
"maxChars": 50
},
"description": {
"required": true,
"example": "Join thousands of companies using our platform",
"minChars": 5,
"maxChars": 200
},
"tag": {
"required": false,
"example": "Partners",
"minChars": 2,
"maxChars": 30
}
},
"buttonRules": {
"maxButtons": 2,
"structure": {
"text": "string - Button label",
"href": "string - Link destination (optional)",
"onClick": "() => void - Additional click handler (optional)"
},
"note": "Button variant is controlled by ThemeProvider's defaultButtonVariant."
},
"nameRules": {
"required": true,
"minItems": 4,
"structure": "string[] - Array of company/partner names",
"note": "Names are displayed as text in an infinite scrolling marquee. Auto-repeated 3x for seamless loop."
}
},
"propsSchema": {
"names": "string[] (required) - Array of company/partner names to display as text",
"title": "string",
"titleSegments?": "TitleSegment[]",
"description": "string",
"tag?": "string",
"tagIcon?": "LucideIcon",
"tagAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'",
"buttons?": "ButtonConfig[]",
"buttonAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'",
"textboxLayout": "TextboxLayout",
"useInvertedBackground": "boolean",
"speed?": "number (default: 40)",
"showCard?": "boolean (default: true) - Whether to show card styling around items",
"ariaLabel?": "string (default: 'Social proof section')",
"className?": "string",
"containerClassName?": "string",
"textBoxTitleClassName?": "string",
"titleImageWrapperClassName?": "string",
"titleImageClassName?": "string",
"textBoxDescriptionClassName?": "string",
"textBoxClassName?": "string",
"textBoxTagClassName?": "string",
"textBoxButtonContainerClassName?": "string",
"textBoxButtonClassName?": "string",
"textBoxButtonTextClassName?": "string",
"contentClassName?": "string",
"logoItemClassName?": "string",
"logoCardClassName?": "string",
"logoTextClassName?": "string"
},
"usageExample": "<ThemeProvider defaultButtonVariant=\"icon-arrow\" borderRadius=\"rounded\"><SocialProofOne title=\"Trusted by Industry Leaders\" description=\"Join thousands of companies using our platform.\" tag=\"Partners\" textboxLayout=\"default\" useInvertedBackground={false} names={['Acme Corp', 'TechFlow', 'Innovate Inc', 'CloudSync']} speed={40} showCard={true} /></ThemeProvider>",
"do": [
"Use for displaying partner/client names",
"Include at least 4 items for good visual effect"
],
"dont": [
"Do not use with fewer than 4 items",
"Do not mix very long and very short names"
],
"editRules": {
"textOnly": true,
"layoutLocked": true,
"styleLocked": true
}
}