Homecomponentsinput

Rate

A decorated input to get rating.


Use Rate to rate a profile, session, and so on.

API

name
Required
The name of the field.
string

value
Required
The value of the field.
number | undefined

onChange
Required
Action to perform when the rating is changed.
(rating: number) => void

id
The ID of the element.
string

onBlur
Action to perform when the field is blurred.
FocusEventHandler<HTMLDivElement>

data
An object with the data keys and values.
DataAttributeMap

ref
Ref<HTMLInputElement>

key
Key | null
Table of Contents