Switch to version 1: remove registry/components/ButtonTextShift.json
This commit is contained in:
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
"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": "<ButtonTextShift text=\"Get Started\" href=\"contact\" />",
|
|
||||||
"do": [
|
|
||||||
"Use for general use"
|
|
||||||
],
|
|
||||||
"dont": [],
|
|
||||||
"editRules": {
|
|
||||||
"textOnly": true,
|
|
||||||
"layoutLocked": true,
|
|
||||||
"styleLocked": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user