Sha256: 3f8662987a9388b5b52e86aee6e5ef032fc72b2367503037b8ff7ca4ae9e8e11

Contents?: true

Size: 766 Bytes

Versions: 95

Compression:

Stored size: 766 Bytes

Contents

# typed: true
# frozen_string_literal: true

module Primer
  module Alpha
    class ActionMenu
      # This component is part of <%= link_to_component(Primer::Alpha::ActionMenu) %> and should not be
      # used as a standalone component.
      class Group < Primer::Alpha::ActionList
        # Heading text rendered above the list of items.
        #
        # @param system_arguments [Hash] The arguments accepted by <%= link_to_component(Primer::Alpha::ActionMenu::Heading) %>.
        def with_heading(**system_arguments, &block)
          super(component_klass: Primer::Alpha::ActionMenu::Heading, **system_arguments, &block)
        end

        def with_divider
          raise "ActionMenu groups cannot have dividers"
        end
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 2 rubygems

Version Path
primer_view_components-0.19.0 app/components/primer/alpha/action_menu/group.rb
openproject-primer_view_components-0.22.2 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.18.2 app/components/primer/alpha/action_menu/group.rb
openproject-primer_view_components-0.22.1 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.18.1 app/components/primer/alpha/action_menu/group.rb
openproject-primer_view_components-0.22.0 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.18.0 app/components/primer/alpha/action_menu/group.rb
openproject-primer_view_components-0.21.0 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.17.0 app/components/primer/alpha/action_menu/group.rb
openproject-primer_view_components-0.20.0 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.16.1 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.16.0 app/components/primer/alpha/action_menu/group.rb
openproject-primer_view_components-0.19.0 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.15.1 app/components/primer/alpha/action_menu/group.rb
primer_view_components-0.15.0 app/components/primer/alpha/action_menu/group.rb