Sha256: a566f6b4e20301529aad2fdcf179c7588ff7fc7e24eed8bec42b231f8a71595d

Contents?: true

Size: 707 Bytes

Versions: 125

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

# :nocov:

module Primer
  module Alpha
    class ActionBar
      # ActionBar::Item is an internal component that wraps the items in a div with the `ActionBar-item` class.
      class Divider < Primer::Component
        def initialize
          @system_arguments = {
            tag: :hr,
            role: :presentation,
            aria: {
              hidden: true
            },
            data: {
              targets: "action-bar.items"
            },
            classes: "ActionBar-item ActionBar-divider"
          }
        end

        def call
          render(Primer::BaseComponent.new(**@system_arguments)) { content }
        end
      end
    end
  end
end

Version data entries

125 entries across 125 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.52.2 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.36.4 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.52.1 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.52.0 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.36.3 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.51.0 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.36.2 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.50.1 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.50.0 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.36.1 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.36.0 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.49.2 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.35.2 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.49.1 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.49.0 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.35.1 app/components/primer/alpha/action_bar/divider.rb
primer_view_components-0.35.0 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.48.2 app/components/primer/alpha/action_bar/divider.rb
openproject-primer_view_components-0.48.1 app/components/primer/alpha/action_bar/divider.rb