Skip to content

Commit

Permalink
Updated: Rating component example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
moshiur01 committed Dec 18, 2024
1 parent 0271f2b commit 1a83139
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions components/content/docs/components/rating/ratingCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,26 @@ import { Rating, RatingStar } from "keep-vue";

const RatingTypesCode = {
"RatingComponent.vue": `<script setup>
import { Rating, RatingStar } from "keep-vue";
import { PhStar } from "@phosphor-icons/vue";
import { Rating, RatingStar } from "keep-vue";
</script>
<template>
<Rating>
<RatingStar :value="1">
<PhosphorIconStar :size="20" />
<PhStar :size="20" />
</RatingStar>
<RatingStar :value="2">
<PhosphorIconStar :size="20" />
<PhStar :size="20" />
</RatingStar>
<RatingStar :value="3">
<PhosphorIconStar :size="20" />
<PhStar :size="20" />
</RatingStar>
<RatingStar :value="4">
<PhosphorIconStar :size="20" />
<PhStar :size="20" />
</RatingStar>
<RatingStar :value="5">
<PhosphorIconStar :size="20" />
<PhStar :size="20" />
</RatingStar>
</Rating>
</template>
Expand Down

0 comments on commit 1a83139

Please sign in to comment.