class Primer::FlexItemComponent
“‘
<%%= render Primer::Box.new(flex: :auto) %>
“`erb
After:
“`
<%%= render Primer::FlexItemComponent.new(flex_auto: :auto) %>
“`erb
Before:
Use <%= link_to_component(Primer::Box) %> instead.
@deprecated
dimensions to fill available space.
Use `FlexItem` to specify the ability of a flex item to alter its
def call
def call render(Primer::Box.new(**@system_arguments)) { content } end
def initialize(flex_auto: FLEX_AUTO_DEFAULT, **system_arguments)
-
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) deprecated_component_warning(new_class: Primer::Box, version: "0.0.40") @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