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

32 lines
664 B
Vue
Raw Normal View History

2025-03-03 11:00:23 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Rating is used with the <i>v-model</i> property for two-way value binding.</p>
</DocSectionText>
<div class="card flex justify-center">
<Rating v-model="value" />
</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(null);
const code = ref(`
<template>
<div class="card flex justify-center">
<Rating v-model="value" />
</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(null);
<\/script>
`);
</script>