Rate
Select or display a rating.
Basic usage
Live previewBasic usage
Current rating: 3.5
basic.tsx
Rate API
Types
Import the exported types when defining props or building item lists.
Usage notes
Arrow keys change the rating, Home / End select the first or last rating, and Delete or Backspace clears it. Set name to read ratings with FormData. required participates in form validation; uncontrolled ratings support reset.