class Primer::FlexItemComponent

dimensions to fill available space
Use FlexItemComponent to specify the ability of a flex item to alter its

def call

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

def initialize(flex_auto: FLEX_AUTO_DEFAULT, **system_arguments)

Parameters:
  • system_arguments (Hash) -- <%= link_to_system_arguments_docs %>
  • flex_auto (Boolean) -- Fills available space and auto-sizes based on the content. Defaults to <%= Primer::FlexItemComponent::FLEX_AUTO_DEFAULT %>

Other tags:
    Example: Default -
def initialize(flex_auto: FLEX_AUTO_DEFAULT, **system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:classes] =
    class_names(
      @system_arguments[:classes],
      "flex-auto" => fetch_or_fallback(FLEX_AUTO_ALLOWED_VALUES, flex_auto, FLEX_AUTO_DEFAULT)
    )
end