class Primer::Alpha::ActionList::Divider
Separator with optional text rendered above groups or between individual items.
def call
def call render(Primer::BaseComponent.new(**@system_arguments)) { content } end
def initialize(scheme: DEFAULT_SCHEME, **system_arguments)
-
system_arguments
(Hash
) -- <%= link_to_system_arguments_docs %> -
scheme
(Symbol
) -- Display a background color if scheme is `filled`.
def initialize(scheme: DEFAULT_SCHEME, **system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :li @system_arguments[:role] = :presentation @system_arguments[:'aria-hidden'] = true @scheme = fetch_or_fallback(SCHEME_OPTIONS, scheme, DEFAULT_SCHEME) @system_arguments[:classes] = class_names( "ActionList-sectionDivider", SCHEME_MAPPINGS[@scheme] ) end