class Primer::Beta::TimelineItem::Badge
used as a standalone component.
This component is part of ‘Primer::Beta::TimelineItem` and should not be
def call
def call render(Primer::BaseComponent.new(**@system_arguments)) do render(Primer::Beta::Octicon.new(@icon)) end end
def initialize(icon: nil, **system_arguments)
def initialize(icon: nil, **system_arguments) @icon = icon @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :div @system_arguments[:classes] = class_names( "TimelineItem-badge", system_arguments[:classes] ) end