Skip to content

Rate

Only God can judge me.

Example

Basic

Show Code
vue
<script lang="ts" setup>
import { RRate } from 'roughness'
import { ref } from 'vue'

let rate = ref(3)
</script>

<template>
  <RRate v-model="rate" />
</template>

Shape

Show Code
vue
<script lang="ts" setup>
import { Heart } from 'lucide'
import { RRate } from 'roughness'
</script>

<template>
  <RRate :shape="Heart" />
</template>

Usage

Props

NameTypeDefault ValueDescription
modelValue
shape

Events

NameTypeDescription
update:modelValue

Styles

NameTypeDefault ValueDescription
--r-rate-color
--r-rate-control-size
--r-rate-gap-size

Released under the ISC License.