Sha256: 927e311d87399347e4a9728ed0818dc310f2eca5e3a638afd2e87faaa43b506e
Contents?: true
Size: 776 Bytes
Versions: 20
Compression:
Stored size: 776 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 # @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
20 entries across 20 versions & 1 rubygems