diff --git a/app/components/popup_menu_component.rb b/app/components/popup_menu_component.rb index 620a3e33b..8e9021be4 100644 --- a/app/components/popup_menu_component.rb +++ b/app/components/popup_menu_component.rb @@ -2,7 +2,14 @@ class PopupMenuComponent < ApplicationComponent include ViewComponent::SlotableV2 - delegate :ellipsis_icon, to: :helpers + attr_reader :classes + + renders_one :button renders_many :items + + # @param classes [String] A list of CSS classes for the root element. + def initialize(classes: nil) + @classes = classes + end end diff --git a/app/components/popup_menu_component/popup_menu_component.html.erb b/app/components/popup_menu_component/popup_menu_component.html.erb index 7e4904443..c7abca8c3 100644 --- a/app/components/popup_menu_component/popup_menu_component.html.erb +++ b/app/components/popup_menu_component/popup_menu_component.html.erb @@ -1,6 +1,10 @@ -