AccrueAdmin.Components.Radio (accrue_admin v1.5.0)

Copy Markdown View Source

Shared radio button form control for mounted admin pages.

Renders an inline ax-field-inline label wrapping a native <input type="radio">. Group all radio buttons under the same name to form a radio group; only one can be selected at a time.

Summary

Functions

radio(assigns)

Attributes

  • id (:string) (required)
  • name (:string) (required)
  • label (:string) (required)
  • value (:string) (required)
  • checked (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • Global attributes are accepted. Supports all globals plus: ["phx-click", "phx-value-id", "form", "phx-hook"].