Rating

Required before submitting feedback.

Attribute Type Documentation Default Value
field %FormField{}

a form field struct

id :string
name :string
value :any
max :integer 5
value_label :any

fn value, max -> label end — what a screen reader hears for a value: the

Read more Read less

name of a read-only rating and of a rating without label, and the name of each star. nil says "3 out of 5", in English. A function, not a template, so the caller can pick the plural form for the number, which a %{value} string handed to a translation function cannot.

readonly :boolean false
disabled :boolean false
size :string "md"
label :string
description :string
errors :list []
class :any
rest :global