Sha256: 1835f6a612b266b104eec65ada9cc68aa237b0b3a24f0d3cf1bc712255ada9b9

Contents?: true

Size: 495 Bytes

Versions: 120

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

module Primer
  # `Box` is a basic wrapper component for most layout related needs.
  class Box < Primer::Component
    status :stable

    # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
    def initialize(**system_arguments)
      @system_arguments = deny_tag_argument(**system_arguments)

      @system_arguments[:tag] = :div
    end

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

Version data entries

120 entries across 120 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.33.0 app/components/primer/box.rb
primer_view_components-0.25.1 app/components/primer/box.rb
openproject-primer_view_components-0.32.1 app/components/primer/box.rb
openproject-primer_view_components-0.32.0 app/components/primer/box.rb
openproject-primer_view_components-0.29.1 app/components/primer/box.rb
openproject-primer_view_components-0.29.0 app/components/primer/box.rb
primer_view_components-0.23.0 app/components/primer/box.rb
openproject-primer_view_components-0.28.1 app/components/primer/box.rb
openproject-primer_view_components-0.28.0 app/components/primer/box.rb
openproject-primer_view_components-0.27.0 app/components/primer/box.rb
openproject-primer_view_components-0.26.0 app/components/primer/box.rb
openproject-primer_view_components-0.25.1 app/components/primer/box.rb
primer_view_components-0.22.0 app/components/primer/box.rb
primer_view_components-0.21.1 app/components/primer/box.rb
openproject-primer_view_components-0.25.0 app/components/primer/box.rb
openproject-primer_view_components-0.24.0 app/components/primer/box.rb
primer_view_components-0.21.0 app/components/primer/box.rb
primer_view_components-0.20.1 app/components/primer/box.rb
primer_view_components-0.20.0 app/components/primer/box.rb
openproject-primer_view_components-0.23.0 app/components/primer/box.rb