Br

Component Documentation

matestack core component: Br

Show specs

The HTML <br> tag implemented in ruby.

Parameters

This component can take 1 optional configuration param.

# times (optional)

The number of times you want to repeat the spacing.

Example 1

Using the <br> tag once

heading text: "foo"
br
heading text: "bar"

returns

<h1>foo</h1>
<br>
<h1>bar</h1>

Example 2

Using the <br> tag a couple of times

heading text: "foo"
br times: 3
heading text: "bar"

returns

<h1>foo</h1>
<br>
<br>
<br>
<h1>bar</h1>