Class: SidebarComponentPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- SidebarComponentPreview
- Defined in:
- lib/alveole/previews/sidebar_component_preview.rb
Instance Method Summary collapse
Instance Method Details
#default ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/alveole/previews/sidebar_component_preview.rb', line 4 def default render(SidebarComponent.new) do || .top do tag.span('Example top') end .bottom do tag.span('Example bottom') end tag.span('Example content') end end |
#without_bottom ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/alveole/previews/sidebar_component_preview.rb', line 25 def without_bottom render(SidebarComponent.new) do || .top do tag.span('Example top') end tag.span('Example content') end end |
#without_top ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/alveole/previews/sidebar_component_preview.rb', line 16 def without_top render(SidebarComponent.new) do || .bottom do tag.span('Example bottom') end tag.span('Example content') end end |