Initial commit
This commit is contained in:
36
registry/components/ButtonShiftHover.json
Normal file
36
registry/components/ButtonShiftHover.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "ButtonShiftHover",
|
||||
"description": "CTA button where the label nudges upward on hover and a trailing dot fills from outline to solid.",
|
||||
"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": "<ButtonShiftHover text=\"Get Started\" href=\"pricing\" />",
|
||||
"do": [
|
||||
"Use for general use"
|
||||
],
|
||||
"dont": [
|
||||
"Do not use multiple items"
|
||||
],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user