Skip to content

Rating

Displays a list of stars to indicate an overall review score.

Input

Usage

vue
<script setup lang="ts">
import { ref } from 'vue';
import { RatingInput } from '@youcan/ui-vue3';
const movieRating = ref(0);
</script>

<template>
  <RatingInput v-model="movieRating" :ceil="5" />
</template>

API Reference

Display

Usage

vue
<script setup lang="ts">
import { Rating } from '@youcan/ui-vue3';
</script>

<template>
  <Rating :ceil="5" :score="4" />
</template>

API Reference