From ecb3520a566fcf4880c131138d47ed7a6dc77036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malin=20Kytt=C3=A4?= Date: Thu, 21 Mar 2024 07:41:07 +0000 Subject: [PATCH] chore: button typings --- source/php/Component/Button/button.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/source/php/Component/Button/button.json b/source/php/Component/Button/button.json index febd6151..090ef527 100644 --- a/source/php/Component/Button/button.json +++ b/source/php/Component/Button/button.json @@ -15,7 +15,6 @@ "pressed": "false", "toggle": false, "icon": false, - "attributeList": [], "reversePositions": false, "fullWidth": false, "classListIcon": [], @@ -45,6 +44,28 @@ "ariaLabel": "Aria label text for the button", "disableColor": "To use or not to use the disabled color even if the button is disabled" }, + "types":{ + "text": "string|boolean", + "size": "string", + "color": "string", + "type": "string", + "style": "string", + "shape": "string", + "href": "string|boolean", + "target": "string", + "componentElement":"string", + "labelElement":"string", + "ripple": "boolean", + "pressed": "boolean", + "toggle": "boolean", + "icon": "string|boolean", + "reversePositions": "boolean", + "fullWidth": "boolean", + "classListIcon": "array", + "classListText": "array", + "ariaLabel": "string|boolean", + "disableColor": "boolean" + }, "view":"button.blade.php", "dependency": { "sass": {