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: %{}, errors: [],
 data: #MoonWeb.Pages.Tutorials.AddDataUsingForm.User<>, valid?: true>
Props
Name Type Required Default Description
id string true - Unique element's identifier
default slot true - Represent a caption for an item
field atom true - Field name for underlying surface radio button component
aria_label - - - TODO - Defines a string value that labels the current element
checked boolean false false A Boolean indicating whether or not this radio button is the default-selected item in the group
click event true - Event handler