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 :id, :any, default: nil
attr :style, :string, default: ""
attr :type, :string, values: ~w(
scales_logo scales_logo_small chevron drag_handle toggle_up cms_rich_text
)
def svg(%{type: "scales_logo"} = assigns) do
~H"""
"""
end
def svg(%{type: "scales_logo_small"} = assigns) do
~H"""
"""
end
def svg(%{type: "chevron"} = assigns) do
~H"""
"""
end
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
def svg(%{type: "cms_video"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_image"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_header"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_cta"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_button"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_cta_image"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_button_collection"} = assigns) do
~H"""
"""
end
def svg(%{type: "cms_image_button_collection"} = assigns) do
~H"""
"""
end
end