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
primer_view_components-0.30.0 app/components/primer/box.rb
openproject-primer_view_components-0.39.1 app/components/primer/box.rb
openproject-primer_view_components-0.39.0 app/components/primer/box.rb
openproject-primer_view_components-0.38.0 app/components/primer/box.rb
primer_view_components-0.29.0 app/components/primer/box.rb
primer_view_components-0.28.0 app/components/primer/box.rb
openproject-primer_view_components-0.37.1 app/components/primer/box.rb
openproject-primer_view_components-0.37.0 app/components/primer/box.rb
openproject-primer_view_components-0.36.2 app/components/primer/box.rb
openproject-primer_view_components-0.36.1 app/components/primer/box.rb
openproject-primer_view_components-0.36.0 app/components/primer/box.rb
primer_view_components-0.27.0 app/components/primer/box.rb
openproject-primer_view_components-0.35.2 app/components/primer/box.rb
openproject-primer_view_components-0.35.1 app/components/primer/box.rb
primer_view_components-0.26.1 app/components/primer/box.rb
openproject-primer_view_components-0.35.0 app/components/primer/box.rb
primer_view_components-0.26.0 app/components/primer/box.rb
openproject-primer_view_components-0.34.0 app/components/primer/box.rb
openproject-primer_view_components-0.33.2 app/components/primer/box.rb
openproject-primer_view_components-0.33.1 app/components/primer/box.rb