defmodule Moon.Design.Form.Field.Error do @moduledoc false use Moon.StatelessComponent alias Moon.Icon @doc "Data-testid attribute for HTML tag" prop(testid, :string) @doc "Id attribute for HTML tag" prop(id, :string) @doc "Additional Tailwind classes" prop(class, :css_class) @doc "Whether error icon is shown" prop(has_error_icon, :boolean, default: false) @doc "Whether label is on side of input field" prop(is_horizontal, :boolean, default: false) @doc "Default slot" slot(default) def render(assigns) do ~F""" """ end end