Sha256: 8a5b0fd21cdfbe99b3b8341a88cbb692cbc30334d397885f502ca3ff10c0aaf3
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
class PageComponentPreview < ViewComponent::Preview layout false def default render(PageComponent.new) do |page| page.actions do tag.span('Example actions') end page.header do tag.span('Example header') end tag.span('Example content') end end def without_actions render(PageComponent.new) do |page| page.header do tag.span('Example header') end tag.span('Example content') end end def without_header render(PageComponent.new) do |page| page.actions do tag.span('Example actions') end tag.span('Example content') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/previews/page_component_preview.rb |