Lanseringsvecka50 % rabatt på ett år AuteurSe planer
SpacesSkaffa Pro
Alla komponenter

Rating Gratis

Hover or drag across the stars to preview, let go to set. The chosen ones pop in turn.

How was your lunch?Padella · Borough Market

Tap a star

Karaktär
Lekfull
Registrera dig gratis för att ladda ner

Använd till

  • Quick feedback after an order, a ride or a stay.

Inte till

  • Anything needing nuance. Ask a question instead.

Props

Lästa direkt ur komponentens egen TypeScript, så de är alltid aktuella.

PropTypStandard
valueKrävsnumber
onChangeKrävs(v: number) => void
tonestring'var(--c-orange)'

Bättre med en skill

Ge din agent en, så använder den Rating som det är tänkt.

Spacing and buttonsGratis

Sizes and spaces it on the same scale as the rest of the page, so it sits right.

$npx velvo skill spacing-and-buttons
Läs skillen
Motion with weightGratis

Keeps its springs and press feel intact when your agent wires it into your app.

$npx velvo skill velvo-motion
Läs skillen

Specs

Category
Controls
Tier
Free
Built with
React and TypeScript
Files
17
Size
311 KB
Needs
framer-motion
Install
npx velvo add rating
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo free licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

controlsgesturefreereact
NästaRange slider