RadioButton

Radio buttons are used to represent a group or category of choices whereby users can only select one option - the main difference from checkboxes that allow users to select multiple options.

RadioButton

State
@user_changeset = #Ecto.Changeset<
  action: nil,
  changes: %{role: 1},
  errors: [],
  data: #MoonWeb.Pages.Tutorials.AddDataUsingForm.User<>,
  valid?: true
>
RadioButton props
Name Type Required Default Description
id string Yes - Unique element's identifier
default slot Yes - Represent a caption for an item
field atom Yes - Field name for underlying surface radio button component
aria_label - - - TODO - Defines a string value that labels the current element
checked boolean No false A Boolean indicating whether or not this radio button is the default-selected item in the group
click event Yes - Event handler