Initial commit
This commit is contained in:
34
registry/components/ButtonTextShift.json
Normal file
34
registry/components/ButtonTextShift.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "ButtonTextShift",
|
||||
"description": "CTA button with synchronized character shift animation on hover.",
|
||||
"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",
|
||||
"scrollToSection?": "boolean",
|
||||
"className?": "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