2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Multiple checkboxes can be grouped together.</p>
|
|
|
|
</DocSectionText>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-4">
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient1"> Cheese </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient2"> Mushroom </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient3"> Pepper </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient4"> Onion </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
pizza: null,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-4">
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient1"> Cheese </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient2"> Mushroom </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient3"> Pepper </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient4"> Onion </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2023-10-15 06:00:52 +00:00
|
|
|
</div>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-4">
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient1"> Cheese </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient2"> Mushroom </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient3"> Pepper </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient4"> Onion </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
pizza: null
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2023-10-15 06:00:52 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-wrap justify-center gap-4">
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient1"> Cheese </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient2"> Mushroom </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient3"> Pepper </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2024-10-24 14:45:31 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
2024-10-24 14:45:31 +00:00
|
|
|
<label for="ingredient4"> Onion </label>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-03-09 18:41:01 +00:00
|
|
|
<script setup>
|
2023-02-28 08:29:30 +00:00
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const pizza = ref();
|
2023-10-15 06:00:52 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|