diff --git a/registry/components/SocialProofOne.json b/registry/components/SocialProofOne.json new file mode 100644 index 0000000..0876590 --- /dev/null +++ b/registry/components/SocialProofOne.json @@ -0,0 +1,87 @@ +{ + "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": "", + "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 + } +}