Text
Use text as a wrapper component that will apply typography styles to the text inside.
Text
is a wrapper component that will apply typography styles to the text inside.
Name | Type | Default | Description |
---|---|---|---|
tag | Symbol | :span | |
system_arguments | Hash | N/A | System arguments |
Bold Text
Danger Text
<%= render(Primer::Beta::Text.new(tag: :p, font_weight: :bold)) { "Bold Text" } %><%= render(Primer::Beta::Text.new(tag: :p, color: :danger)) { "Danger Text" } %>