From 078f63fbb096dd0749cdf682be7f2f033010c093 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 17 Apr 2026 21:18:02 +0000 Subject: [PATCH] Switch to version 2: added registry/components/ButtonIconArrow.json --- registry/components/ButtonIconArrow.json | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 registry/components/ButtonIconArrow.json diff --git a/registry/components/ButtonIconArrow.json b/registry/components/ButtonIconArrow.json new file mode 100644 index 0000000..90d87a5 --- /dev/null +++ b/registry/components/ButtonIconArrow.json @@ -0,0 +1,36 @@ +{ + "name": "ButtonIconArrow", + "description": "Button with a trailing arrow icon that transforms on hover.", + "details": "Use for CTAs where a subtle icon transformation helps indicate forward navigation. The arrow icon transitions into a square on hover/focus. Keep label short and simple.", + "constraints": { + "textRules": { + "text": { + "required": true, + "example": "Button", + "minChars": 2, + "maxChars": 25 + } + } + }, + "propsSchema": { + "text": "string", + "onClick?": "() => void", + "href?": "string - External URLs open in new tab, internal values scroll to section", + "className?": "string", + "textClassName?": "string", + "iconClassName?": "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 + } +}