Skip to content
Star input, light
Light
Star input, dark
Dark

Every state

  • Star input, default, light
    Star input, default, dark

    default

  • Star input, chosen, light
    Star input, chosen, dark

    chosen

  • Star input, hover, light
    Star input, hover, dark

    hover

  • Star input, focus, light
    Star input, focus, dark

    focus

  • Star input, clicked, light
    Star input, clicked, dark

    clicked

  • Star input, clearable, light
    Star input, clearable, dark

    clearable

  • Star input, required, light
    Star input, required, dark

    required

  • Star input, error, light
    Star input, error, dark

    error

  • Star input, three-stars, light
    Star input, three-stars, dark

    three-stars

Props

PropTypeDefaultWhat it does
labelstringYour ratingLabel of the whole field
namestringratingForm field name
labelsstring[]Poor, Fair, Good, Very good, ExcellentOne word per star, lowest first
defaultValuenumber0Stars filled on first render, 0 for none
placeholderstringChoose a ratingText beside the stars while nothing is chosen
requiredbooleanfalseMarks the field required
clearablebooleanfalseShow a Clear rating button once a star is chosen
hintstring–Helper line under the stars
errorstring–Error message, read with the group
onValueChange(value: number) => void–Called with the new value, 0 when cleared

More ratings

All 10
rating-07 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans