diff --git a/lib/doggo.ex b/lib/doggo.ex
index e0fd06c6..1861f034 100644
--- a/lib/doggo.ex
+++ b/lib/doggo.ex
@@ -929,8 +929,8 @@ defmodule Doggo do
attr :type, :string,
default: "text",
values: ~w(checkbox color date datetime-local email file hidden month number
- password range radio search select switch tel text textarea time url
- week)
+ password range radio radio-group search select switch tel text textarea
+ time url week)
attr :field, Phoenix.HTML.FormField,
doc: "A form field struct, for example: @form[:name]"
@@ -956,8 +956,9 @@ defmodule Doggo do
attr :options, :list,
doc: """
- A list of options for a select element. See
- `Phoenix.HTML.Form.options_for_select/2`.
+ A list of options for a select element or a radio group. See
+ `Phoenix.HTML.Form.options_for_select/2`. Note that the radio group does
+ not support nesting.
"""
attr :multiple, :boolean,
@@ -1017,6 +1018,29 @@ defmodule Doggo do
"""
end
+ def input(%{type: "radio-group"} = assigns) do
+ ~H"""
+