defmodule PetalComponents.Dropdown do
use Phoenix.Component
def dropdown(assigns) do
~H"""
<%= if @label do %>
<% else %>
<% end %>
<%= render_slot(@inner_block) %>
"""
end
def dropdown_menu_item(%{type: "button"} = assigns) do
~H"""
"""
end
def dropdown_menu_item(%{type: "a"} = assigns) do
~H"""
"""
end
def dropdown_menu_item_classes(),
do:
"block flex gap-2 items-center self-start justify-start px-4 py-2 text-sm text-gray-700 transition duration-150 ease-in-out hover:bg-gray-100 w-full text-left"
end