rating-input

Rating Input

Lets the user give a rating by picking a mark, drawn with the Rating item's stars or dots, joining a Field.

Parts

PartFileDoes
RatingInputRatingInput.vueLets the user give a rating by picking one of its marks, drawn as dots or stars.

Styling

All of Rating Input’s styles live in rating-input.json. New to styling in Frontic UI? How styling works →

Install

Installs with it
rating
use-field-control
npm packages
@vueuse/core
class-variance-authority
reka-ui

Built from

API reference

RatingInput.vue

Lets the user give a rating by picking one of its marks, drawn as dots or stars.

Props 17

PropTypeDefault
lengthnumber5
disabledbooleanfalse
dirDirection—
orientationDataOrientation'horizontal'
asChildbooleanfalse
asAsTag | Component—
modelValuenumber—
defaultValuenumber—
namestring—
requiredbooleanfalse
loopbooleanfalse
clearablebooleanfalse
hoverablebooleantrue
classClassValue—
sizeRatingSize'md'
shapeRatingShape'star'
label((value: number, length: number) => string)`${value} out of ${length}`

Events 1

EventPayload
update:modelValuepayload: number

Data attributes 1

Data attributeValues
data-disabled—

Recipe rating-input 1 group

Recipe rating-input-item 5 groups

Rating Input
State