Skip to content

Text

Table of contents
Table of contents

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

Examples

Default

<%= render(Primer::TextComponent.new(tag: :p, font_weight: :bold)) { "Bold Text" } %>
<%= render(Primer::TextComponent.new(tag: :p, color: :red_5)) { "Red Text" } %>

Arguments

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments