server creation wip

This commit is contained in:
2025-03-28 17:10:36 +00:00
parent 7d2bc3ca5e
commit 350cf6e240
16 changed files with 3180 additions and 30 deletions

View File

@@ -0,0 +1,32 @@
<script setup>
defineProps({
modelValue: String,
disabled: Boolean,
value: String,
name: String,
});
const emit = defineEmits(['update:modelValue']);
function onChange(event) {
console.log(event);
emit('update:modelValue', event.target.value)
}
</script>
<template>
<label
class="relative rounded-lg border-2 border-white/20 px-3 py-1 has-[:checked]:border-white has-[:disabled]:opacity-40"
>
<input
type="radio"
:name="name"
:value="value"
class="invisible absolute inset-0"
:disabled="disabled"
:checked="modelValue === value"
@change="onChange"
/>
<slot />
</label>
</template>