Skip to content

Heading

Table of contents
Table of contents

Use the Heading component to wrap a component that will create a heading element

Examples

Default

H1 Text

H2 Text

H3 Text

<%= render(Primer::HeadingComponent.new) { "H1 Text" } %>
<%= render(Primer::HeadingComponent.new(tag: :h2)) { "H2 Text" } %>
<%= render(Primer::HeadingComponent.new(tag: :h3)) { "H3 Text" } %>

Arguments

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments