From 20fa2cc2b8d574763cc2671704e2e58dd44d1251 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 14 Jun 2024 00:58:56 +0200 Subject: [PATCH] Add size to box --- src/components/Box.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/Box.vue b/src/components/Box.vue index dff617a..2ba2d5b 100644 --- a/src/components/Box.vue +++ b/src/components/Box.vue @@ -6,7 +6,7 @@ v-text="step" v-if="step" > -
+
@@ -35,11 +35,25 @@ const colors = ref({ }, }); +const sizes = ref({ + default: { + container: 'p-4', + }, + sm: { + container: 'p-2', + }, +}); + const props = defineProps({ type: { required: true, type: String, }, + size: { + required: false, + type: String, + default: () => 'default', + }, step: { required: false, type: Number,