Class: PageBlockComponentPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- PageBlockComponentPreview
- Defined in:
- lib/cubit_components/previews/page_block_component_preview.rb
Instance Method Summary collapse
Instance Method Details
#custom_inner ⇒ Object
8 9 10 11 12 |
# File 'lib/cubit_components/previews/page_block_component_preview.rb', line 8 def custom_inner render(CubitComponents::PageBlockComponent.new(content_block_classes: "bg-white shadow-lg p-6")) do tag.p("Page block with a customized inner content block.") end end |
#default ⇒ Object
2 3 4 5 6 |
# File 'lib/cubit_components/previews/page_block_component_preview.rb', line 2 def default render(CubitComponents::PageBlockComponent.new(vattrs: %w[max-w-sm])) do tag.p("This is a page block which wraps a content block. Outer padding is applied.") end end |