Figure

Component Documentation

matestack core component: Figure

Show specs

The HTML <figure> tag implemented in ruby.

Parameters

This component can take 2 optional configuration params and optional content.

# id (optional)

Expects a string with all ids the figure tag should have.

# class (optional)

Expects a string with all classes the figure tag should have.

Example 1

figure id: "foo", class: "bar" do
  img path: 'matestack-logo.png', width: 500, height: 300, alt: "logo"
end

returns

<figure id="foo" class="bar">
  <img src="your-asset-path/matestack-logo.png" width="500" height="300" alt="logo"/>
</figure>