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