Class: InlineComponentPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- InlineComponentPreview
- Defined in:
- lib/cubit_components/previews/inline_component_preview.rb
Instance Method Summary collapse
Instance Method Details
#collapse_below_md ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cubit_components/previews/inline_component_preview.rb', line 15 def collapse_below_md render(CubitComponents::InlineComponent.new(collapse_below: "sm", vattrs: ["gap-6"])) do tag.div("Block 1") + tag.div("Block 2") + tag.div("Block 3") + tag.div("Block 4") + tag.div("Block 5") + tag.div("Block 6") end end |
#default ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/cubit_components/previews/inline_component_preview.rb', line 4 def default render(CubitComponents::InlineComponent.new(vattrs: ["gap-6"])) do tag.div("Block 1") + tag.div("Block 2") + tag.div("Block 3") + tag.div("Block 4") + tag.div("Block 5") + tag.div("Block 6") end end |