Sha256: c3ec8dac03840f75ac386435996c4158ca4714d85f1be83a5d8c6d608733ec09

Contents?: true

Size: 831 Bytes

Versions: 137

Compression:

Stored size: 831 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Alpha
    class Dialog
      # A `Dialog::Body` is a compositional component, used to render the
      # Body of a dialog. See <%= link_to_component(Primer::Alpha::Dialog) %>.
      class Body < Primer::Component
        status :alpha
        audited_at "2022-10-10"

        # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
        def initialize(**system_arguments)
          @system_arguments = deny_tag_argument(**system_arguments)
          @system_arguments[:tag] = :div
          @system_arguments[:classes] = class_names(
            "Overlay-body",
            system_arguments[:classes]
          )
        end

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

Version data entries

137 entries across 137 versions & 2 rubygems

Version Path
primer_view_components-0.1.5 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.1.4 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.1.3 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.1.2 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.1.1 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.1.0 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.123 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.122 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.121 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.120 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.119 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.118 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.117 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.116 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.115 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.114 app/components/primer/alpha/dialog/body.rb
primer_view_components-0.0.113 app/components/primer/alpha/dialog/body.rb