Sleek Form

Sleek Form

  • Docs

›Components

Components

  • Text
  • Rating
  • Scale
  • Select
  • Question
  • Summary
  • Welcome
  • Radio
  • SleekFormThemProvider

Rating

Rating fields let users to rate things.

Rating Field

The RatingField component is a complete form control including customized rating symbols, rating step size.

Usage

<Rating 
  step={1} 
  start={0} 
  stop={5} 
  emptySymbol={empty1}
  fullSymbol={full1}
/>

Props

The RatingField supports the following properties

PropsDescriptionTypeDefault
onChange?onChange callback(value: number) => voidNone
value?Current selected rating.numberNone
defaultValue?Initial selected rating.numberNone
startRange starting value (exclusive).numberNone
stopRange stop value (inclusive).numberNone
stepDescribes how many values each Symbol represents. For example, for a start value of 0, a stop value of 10 and a step of 2, we will end up with 5 Symbols, with each Symbol representing value increments of 2.numberNone
emptySymbolelement or object or string or arrayReact.ReactElementNone
fullSymbolelement or object or string or arrayReact.ReactElementNone

Demo

You can view a live demo of RatingField in our sandbox

← TextScale →
  • Rating Field
  • Usage
  • Props
  • Demo
Sleek Form
Docs
Getting Started
More
GitHub
Copyright © 2020 Fresalabs