From 2fe91f3847198e4415edfda36cb977458866bbd9 Mon Sep 17 00:00:00 2001 From: Romain Hamel Date: Mon, 15 Apr 2024 11:56:30 +0200 Subject: [PATCH] feat(Switch): add ` label` and ` description` props (#60) Co-authored-by: Benjamin Canac --- playground/pages/input.vue | 4 +- playground/pages/switch.vue | 35 ++++++++++------ playground/pages/textarea.vue | 11 ++---- src/runtime/components/Switch.vue | 66 +++++++++++++++++++++---------- src/theme/checkbox.ts | 2 +- src/theme/switch.ts | 47 +++++++++++++++++----- 6 files changed, 112 insertions(+), 53 deletions(-) diff --git a/playground/pages/input.vue b/playground/pages/input.vue index bb07ad11..b670d2e5 100644 --- a/playground/pages/input.vue +++ b/playground/pages/input.vue @@ -6,7 +6,7 @@ const sizes = Object.keys(theme.variants.size)