primevue-mirror/apps/labs/doc/slider/VerticalDoc.vue

32 lines
794 B
Vue
Raw Normal View History

2025-03-01 14:43:15 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Default layout of slider is <i>horizontal</i>, use <i>orientation</i> property for the alternative <i>vertical</i> mode.</p>
</DocSectionText>
<div class="card flex justify-center">
<PlexSlider v-model="value" orientation="vertical" class="h-56" />
</div>
2025-03-01 14:45:34 +00:00
<DocSectionCode :code="code" />
2025-03-01 14:43:15 +00:00
</template>
<script setup>
import PlexSlider from '@/plex/slider';
import { ref } from 'vue';
const value = ref(50);
const code = ref(`
<template>
<div class="card flex justify-center">
<PlexSlider v-model="value" orientation="vertical" class="h-56" />
</div>
</template>
<script setup>
import PlexSlider from '@/plex/slider';
import { ref } from 'vue';
const value = ref(50);
<\/script>
`);
</script>