From 27d85f0cda4d6f71a5a8eab8f416f29f01602b38 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Mon, 11 Mar 2024 00:32:51 +0000
Subject: Add rest of item stack picker

---
 .../base/ItemStack/ItemStackFormOptionLabel.vue    | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 components/base/ItemStack/ItemStackFormOptionLabel.vue

(limited to 'components/base/ItemStack/ItemStackFormOptionLabel.vue')

diff --git a/components/base/ItemStack/ItemStackFormOptionLabel.vue b/components/base/ItemStack/ItemStackFormOptionLabel.vue
new file mode 100644
index 0000000..ab067f8
--- /dev/null
+++ b/components/base/ItemStack/ItemStackFormOptionLabel.vue
@@ -0,0 +1,26 @@
+<script setup lang="ts">
+defineProps<{
+  option: string
+  label: string
+  type: string
+  isOptionSetFn: (option: string) => boolean;
+  removeOptionFn: (option: string) => void;
+  setOptionFn: (option: string, type: any) => void;
+}>()
+</script>
+
+<template>
+  <div class="label-with-button">
+    <label :for="'itemstack-' + option">{{ label }}</label>
+
+    <Button v-if="isOptionSetFn(option)" label="Remove" :icon="['fas', 'minus']"
+      @click="removeOptionFn(option)"></Button>
+  </div>
+</template>
+
+<style scoped>
+.label-with-button {
+  display: flex;
+  justify-content: space-between;
+}
+</style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

