From eb68b1e2276a67728ddd75a3e5c222026be382f1 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 17 Apr 2026 21:18:03 +0000 Subject: [PATCH] Switch to version 2: added registry/components/ButtonTextShift.json --- registry/components/ButtonTextShift.json | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 registry/components/ButtonTextShift.json diff --git a/registry/components/ButtonTextShift.json b/registry/components/ButtonTextShift.json new file mode 100644 index 0000000..414e2c8 --- /dev/null +++ b/registry/components/ButtonTextShift.json @@ -0,0 +1,36 @@ +{ + "name": "ButtonTextShift", + "description": "CTA button with synchronized character shift animation on hover.", + "details": "Use for primary or secondary CTAs where uniform text motion adds emphasis. Similar to ButtonTextStagger but all characters shift together simultaneously instead of in sequence. Includes background styling with bgClassName.", + "constraints": { + "textRules": { + "text": { + "required": true, + "example": "Get Started", + "minChars": 2, + "maxChars": 25 + } + } + }, + "propsSchema": { + "text": "string", + "onClick?": "() => void", + "href?": "string - External URLs open in new tab, internal values scroll to section", + "className?": "string", + "bgClassName?": "string", + "textClassName?": "string", + "disabled?": "boolean (default: false)", + "ariaLabel?": "string", + "type?": "'button' | 'submit' | 'reset' (default: 'button')" + }, + "usageExample": "", + "do": [ + "Use for general use" + ], + "dont": [], + "editRules": { + "textOnly": true, + "layoutLocked": true, + "styleLocked": true + } +}