defmodule ScalesCmsWeb.SvgComponents do @moduledoc """ Provides custom made UI components. """ use Phoenix.Component attr :width, :string, default: "100" attr :height, :string, default: "100" attr :class, :any, default: nil attr :style, :string, default: "" attr :type, :string, values: ~w( drag_handle toggle_up cms_rich_text ) def svg(%{type: "drag_handle"} = assigns) do ~H""" """ end def svg(%{type: "toggle_up"} = assigns) do ~H""" """ end def svg(%{type: "cms_rich_text"} = assigns) do ~H""" """ end end