RadioButton

NB! The component will be deprecated soon.

Please check out our new Radio component.

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