Homecomponentsinput

Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.

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
Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}
Ref<HTMLInputElement>

key
Key | null
Table of Contents