2023-07-26 15:39:58 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Theming is implemented with the pass through properties in unstyled mode. Example below demonstrates the built-in Tailwind theme.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<DocSectionCode :code="code" embedded />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card flex justify-center">
|
|
|
|
<div class="flex flex-wrap gap-3">
|
|
|
|
<div class="flex align-items-center">
|
|
|
|
<RadioButton v-model="ingredient" inputId="ingredient1" name="pizza" value="Cheese" />
|
2023-08-02 14:03:56 +00:00
|
|
|
<label for="ingredient1" class="text-gray-700 dark:text-white/80 ml-2">Cheese</label>
|
2023-07-26 15:39:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center">
|
|
|
|
<RadioButton v-model="ingredient" inputId="ingredient2" name="pizza" value="Mushroom" />
|
2023-08-02 14:03:56 +00:00
|
|
|
<label for="ingredient2" class="text-gray-700 dark:text-white/80 ml-2">Mushroom</label>
|
2023-07-26 15:39:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center">
|
|
|
|
<RadioButton v-model="ingredient" inputId="ingredient3" name="pizza" value="Pepper" />
|
2023-08-02 14:03:56 +00:00
|
|
|
<label for="ingredient3" class="text-gray-700 dark:text-white/80 ml-2">Pepper</label>
|
2023-07-26 15:39:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center">
|
|
|
|
<RadioButton v-model="ingredient" inputId="ingredient4" name="pizza" value="Onion" />
|
2023-08-02 14:03:56 +00:00
|
|
|
<label for="ingredient4" class="text-gray-700 dark:text-white/80 ml-2">Onion</label>
|
2023-07-26 15:39:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const ingredient = ref('');
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|