Class: HeadingComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/alveole/previews/heading_component_preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject



4
5
6
# File 'lib/alveole/previews/heading_component_preview.rb', line 4

def default
  render(HeadingComponent.new(heading: 'Example heading', sub: 'Example sub title'))
end

#without_subObject



8
9
10
# File 'lib/alveole/previews/heading_component_preview.rb', line 8

def without_sub
  render(HeadingComponent.new(heading: 'Example heading', sub: nil))
end