Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dev.writer.com/llms.txt

Use this file to discover all available pages before exploring further.

A user input component that allows users to provide a rating.

Fields

NameTypeDescriptionOptions
LabelText--
FeedbackText-
  1. Stars
  2. Faces
  3. Hearts
Minimum valueNumberValid values are 0 and 1.-
Max valueNumberValid values are between 2 and 11.-
StepNumberValid values are between 0.25 and 1.-
AccentColor--
Primary textColor--
Custom CSS classesTextCSS classes, separated by spaces. You can define classes in custom stylesheets.-

Events


def onchange_handler(state, payload):

# Set the state variable "rating" to the new value

state["rating"] = payload