Span
Last updated
Was this helpful?
The HTML <span> tag, implemented in Ruby.
This component can take various optional configuration params and either yield content or display what gets passed to the text configuration param.
Expects a string which will be displayed as the content inside the <span> tag.
This component accepts all the canonical HTML global attributes like id or class.
span id: "foo", class: "bar" do
plain 'Hello World' # optional content
endreturns
<span id="foo" class="bar">
Hello World
</span>returns
Last updated
Was this helpful?
Was this helpful?
span id: "foo", class: "bar", text: 'Hello World'<span id="foo" class="bar">
Hello World
</span>