Heading
Parameters
Size (optional)
Text (optional)
HMTL attributes (optional)
Examples
Example 1: Basic usage
heading size: 1, text: 'Heading, size 1'
heading size: 2, text: 'Heading, size 2'
heading size: 3, text: 'Heading, size 3'
heading size: 4, text: 'Heading, size 4'
heading size: 5, text: 'Heading, size 5'
heading size: 6, text: 'Heading, size 6'
heading text: 'Heading, default size 1'Example 1: Yield a given block
Example 2: Render options[:text] param
Last updated
Was this helpful?