🎉Paper UI v2.0 is here!
See what's new

PURating Component

A hand-drawn style rating component with interactive stars and smooth animations

Usage

Basic Usage

Rating: 3/5

With Value Display

4/5

Different Sizes

Readonly Mode

4/5

Disabled State

2/5

Props

PropTypeRequiredDefaultDescription
modelValuenumberNo0Current rating value
maxStarsnumberNo5Maximum number of stars
sizesmall | medium | largeNomediumStar size
readonlybooleanNofalseRead-only mode
disabledbooleanNofalseDisabled state
showValuebooleanNofalseShow rating value
customClassstringNo''Custom CSS classes

Events

EventPayloadDescription
update:modelValuenumberEmitted when rating changes
changenumberEmitted when star is clicked

Features

  • Hand-drawn style stars with organic shadows
  • Interactive hover effects and smooth animations
  • Multiple sizes for different use cases
  • Readonly and disabled states
  • Optional value display
  • Dark mode support
  • Responsive design
  • Accessible keyboard navigation

Dependencies

  • Tailwind CSS for styling
  • Vue 3 Composition API