Sha256: 1fb0701469e1d8683eeee930e9f2752074c5a71b5ffdf4df2291aaf3bb1908be
Contents?: true
Size: 453 Bytes
Versions: 5
Compression:
Stored size: 453 Bytes
Contents
# frozen_string_literal: true module Primer # A basic wrapper component for most layout related needs. class BoxComponent < Primer::Component # @param system_arguments [Hash] <%= link_to_system_arguments_docs %> def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :div end def call render(Primer::BaseComponent.new(**@system_arguments)) { content } end end end
Version data entries
5 entries across 5 versions & 1 rubygems