logo-icon
STW UI

Rating

Rating is a set of radio buttons that allow the user to rate something.

Usage

svelte
import { Rating } from 'stwui';
// OR
import Rating from 'stwui/rating'; // for tree shaking

Basic and Show Value


3 of 5

Half


Size



Show Value

0 of 5

3 of 5

3 of 5

0 of 5

3 of 5

3.5 of 5

Rating Props

half boolean false
outOf number 5
name string nanoid()
value number 0
size 'sm' | 'md' | 'lg' md
showValue boolean false
disabled boolean false
type 'info' | 'success' | 'warn' | 'error' | undefined

Rating Class Identifiers

stwui-rating