Class: Uistiti::Alpha::FlexPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- Uistiti::Alpha::FlexPreview
- Defined in:
- app/components/previews/uistiti/alpha/flex_preview.rb
Instance Method Summary collapse
Instance Method Details
#playground(direction: 'some value', justify_content: 'some value', align_items: 'some value', gap: 'some value') ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/components/previews/uistiti/alpha/flex_preview.rb', line 15 def playground(direction: 'some value', justify_content: 'some value', align_items: 'some value', gap: 'some value') render(Uistiti::Alpha::Flex.new(direction:, justify_content:, align_items:, gap:)) do [ content_tag(:p, 'Item 1'), content_tag(:p, 'Item 2'), content_tag(:p, 'Item 3') ].join.html_safe end end |