-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Star rating #1976
Labels
duplicate
This issue or pull request already exists
Comments
I believe this is something easily achievable in your own codebase, and not really relevant to add to Nuxt UI. |
benjamincanac
added
duplicate
This issue or pull request already exists
and removed
triage
labels
Jul 22, 2024
— with
Volta.net
Please check this playground: https://stackblitz.com/edit/nuxt-ui-njem3p?file=components/StarRating.vue <template>
<div class="space-x-1">
<UIcon
v-for="i in rating"
:key="i"
name="i-heroicons-star-20-solid"
class="text-yellow-500"
/>
<UIcon v-for="i in 5 - rating" :key="i" name="i-heroicons-star" />
</div>
</template>
<script setup lang="ts">
const props = defineProps<{
rating: number;
}>();
</script> <StarRating :rating="4" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
we need star rating component to put products rating in the site
Additional context
Tasks
The text was updated successfully, but these errors were encountered: