defmodule ElixirAiWeb.FormComponents do use Phoenix.Component @doc """ Renders a styled input field with label. ## Examples <.input type="text" name="email" value={@email} label="Email" /> <.input type="password" name="password" label="Password" /> """ attr :type, :string, default: "text" attr :name, :string, required: true attr :value, :string, default: "" attr :label, :string, required: true attr :autocomplete, :string, default: "off" attr :rest, :global def input(assigns) do ~H"""
Are you sure?
""" slot :inner_block, required: true def modal(assigns) do ~H"""