class Primer::Beta::Text

‘Text` is a wrapper component that will apply typography styles to the text inside.

def call

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

def initialize(tag: DEFAULT_TAG, **system_arguments)

Parameters:
  • system_arguments (Hash) -- <%= link_to_system_arguments_docs %>
  • tag (Symbol) --
def initialize(tag: DEFAULT_TAG, **system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = tag
end