2023-07-27 09:42:08 +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">
|
2023-08-02 14:03:56 +00:00
|
|
|
<div class="flex gap-2 justify-center">
|
2023-07-27 09:42:08 +00:00
|
|
|
<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
|
|
|
|
<Button icon="pi pi-arrow-left" @click="visibleRight = true" />
|
|
|
|
<Button icon="pi pi-arrow-down" @click="visibleTop = true" />
|
|
|
|
<Button icon="pi pi-arrow-up" @click="visibleBottom = true" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Sidebar v-model:visible="visibleLeft">
|
|
|
|
<h2>Left Sidebar</h2>
|
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
|
|
</Sidebar>
|
|
|
|
|
|
|
|
<Sidebar v-model:visible="visibleRight" position="right">
|
|
|
|
<h2>Right Sidebar</h2>
|
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
|
|
</Sidebar>
|
|
|
|
|
|
|
|
<Sidebar v-model:visible="visibleTop" position="top">
|
|
|
|
<h2>Top Sidebar</h2>
|
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
|
|
</Sidebar>
|
|
|
|
|
|
|
|
<Sidebar v-model:visible="visibleBottom" position="bottom">
|
|
|
|
<h2>Bottom Sidebar</h2>
|
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
|
|
</Sidebar>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const visibleLeft = ref(false);
|
|
|
|
const visibleRight = ref(false);
|
|
|
|
const visibleTop = ref(false);
|
|
|
|
const visibleBottom = ref(false);
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|