class Primer::BoxComponent
‘Box` is a basic wrapper component for most layout related needs.
def call
def call render(Primer::BaseComponent.new(**@system_arguments)) { content } end
def initialize(**system_arguments)
-
system_arguments(Hash) -- <%= link_to_system_arguments_docs %>
Other tags:
- Example: Color and padding -
Example: Default -
def initialize(**system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :div end