primevue-mirror/doc/selectbutton/theming/UnstyledDoc.vue

31 lines
703 B
Vue
Raw Normal View History

<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">
<SelectButton v-model="value" :options="options" aria-labelledby="basic" />
</div>
</template>
<script setup>
import { ref } from 'vue';
2023-08-02 14:03:56 +00:00
const value = ref('Off');
const options = ref(['Off', 'On']);
<\/script>`
}
};
}
};
</script>