primevue-mirror/apps/volt/doc/rating/DisabledDoc.vue

32 lines
712 B
Vue
Raw Normal View History

2025-03-03 11:00:23 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>When <i>disabled</i> is present, a visual hint is applied to indicate that the Knob cannot be interacted with.</p>
</DocSectionText>
<div class="card flex justify-center">
<Rating v-model="value" disabled />
</div>
<DocSectionCode :code="code" />
</template>
<script setup>
2025-03-03 12:50:58 +00:00
import Rating from '@/volt/rating';
2025-03-03 11:00:23 +00:00
import { ref } from 'vue';
const value = ref(3);
const code = ref(`
<template>
<div class="card flex justify-center">
<Rating v-model="value" disabled />
</div>
</template>
<script setup>
2025-03-03 12:50:58 +00:00
import Rating from '@/volt/rating';
2025-03-03 11:00:23 +00:00
import { ref } from 'vue';
const value = ref(3);
<\/script>
`);
</script>