defmodule <%= @module_name %>.Components.UI.Select do @moduledoc """ Native HTML Select form component with Phoenix.HTML.Form integration. Ejected from PhiaUI — owns this copy of the source. Customise freely. Renders a ` {Phoenix.HTML.Form.options_for_select(@options, @field.value)}

{@description}

{error}

""" end defp translate_error({msg, opts}) do Enum.reduce(opts, msg, fn {key, value}, acc when is_binary(acc) -> String.replace(acc, "%{#{key}}", to_string(value)) _other, acc -> acc end) end end