From b8fb2e5779babe7d95b3e44ea1a65ba6807efb2b Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 04:45:51 +0000 Subject: [PATCH] Switch to version 2: added registry/components/AvatarGroup.json --- registry/components/AvatarGroup.json | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 registry/components/AvatarGroup.json diff --git a/registry/components/AvatarGroup.json b/registry/components/AvatarGroup.json new file mode 100644 index 0000000..dfbd5f7 --- /dev/null +++ b/registry/components/AvatarGroup.json @@ -0,0 +1,36 @@ +{ + "name": "AvatarGroup", + "description": "Displays a group of user avatars with overlapping layout and optional text label.", + "details": "Use for showing user participation, testimonials, or social proof. Displays up to 5 avatars by default with remaining count badge. Avatars overlap with card styling. Includes optional text label (e.g., 'Join 1,000+ members').", + "constraints": { + "textRules": { + "text": { + "required": false, + "example": "Join 1,000+ members", + "minChars": 2, + "maxChars": 50 + } + } + }, + "propsSchema": { + "avatars": "Array<{ src: string, alt?: string }> - User avatar images", + "text?": "string", + "maxVisible?": "number (default: 5)", + "className?": "string", + "avatarClassName?": "string", + "textClassName?": "string", + "ariaLabel?": "string (default: 'User avatars')" + }, + "usageExample": "", + "do": [ + "Use for social proof", + "Use for customer reviews", + "Requires avatars[]" + ], + "dont": [], + "editRules": { + "textOnly": true, + "layoutLocked": true, + "styleLocked": true + } +}