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.36.5 app/components/primer/box.rb
openproject-primer_view_components-0.52.2 app/components/primer/box.rb
primer_view_components-0.36.4 app/components/primer/box.rb
openproject-primer_view_components-0.52.1 app/components/primer/box.rb
openproject-primer_view_components-0.52.0 app/components/primer/box.rb
primer_view_components-0.36.3 app/components/primer/box.rb
openproject-primer_view_components-0.51.0 app/components/primer/box.rb
primer_view_components-0.36.2 app/components/primer/box.rb
openproject-primer_view_components-0.50.1 app/components/primer/box.rb
openproject-primer_view_components-0.50.0 app/components/primer/box.rb
primer_view_components-0.36.1 app/components/primer/box.rb
primer_view_components-0.36.0 app/components/primer/box.rb
openproject-primer_view_components-0.49.2 app/components/primer/box.rb
primer_view_components-0.35.2 app/components/primer/box.rb
openproject-primer_view_components-0.49.1 app/components/primer/box.rb
openproject-primer_view_components-0.49.0 app/components/primer/box.rb
primer_view_components-0.35.1 app/components/primer/box.rb
primer_view_components-0.35.0 app/components/primer/box.rb
openproject-primer_view_components-0.48.2 app/components/primer/box.rb
openproject-primer_view_components-0.48.1 app/components/primer/box.rb