defmodule LivebookWeb.FormHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.Component import Phoenix.HTML.Form import LivebookWeb.LiveHelpers @doc """ A wrapper for inputs with conveniences. """ def input_wrapper(assigns) do assigns = assign_new(assigns, :class, fn -> [] end) ~H"""