From 497bc055a2bf24cf3e19762cbeac99fdb2b6db52 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 22 Nov 2024 03:18:25 +0530 Subject: [PATCH] feat: Attributify button component (#10473) This PR allows attributify for `variant`, `size` and `color` props. This allows using shorthands, instant of writing full props. We also added a small computed method to ensure these does not show up in the DOM and pollute it --------- Co-authored-by: Pranav --- .../components-next/button/Button.vue | 109 ++++++++++++------ .../components-next/button/constants.js | 15 +++ 2 files changed, 90 insertions(+), 34 deletions(-) create mode 100644 app/javascript/dashboard/components-next/button/constants.js diff --git a/app/javascript/dashboard/components-next/button/Button.vue b/app/javascript/dashboard/components-next/button/Button.vue index 02dcfad53..b174ca375 100644 --- a/app/javascript/dashboard/components-next/button/Button.vue +++ b/app/javascript/dashboard/components-next/button/Button.vue @@ -1,46 +1,85 @@