class Primer::Beta::Truncate::TruncateText

used as a standalone component.
This component is part of ‘Primer::Beta::Truncate` and should not be

def call

def call
  render(Primer::BaseComponent.new(**@system_arguments)) do
    content
  end
end

def initialize(priority: false, expandable: false, max_width: nil, **system_arguments)

def initialize(priority: false, expandable: false, max_width: nil, **system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = system_arguments[:tag] || :span
  @system_arguments[:classes] = class_names(
    "Truncate-text",
    system_arguments[:classes],
    "Truncate-text--primary": priority,
    "Truncate-text--expandable": expandable
  )
  @system_arguments[:style] = join_style_arguments(@system_arguments[:style], "max-width: #{max_width}px;") unless max_width.nil?
end