Class: Irelia::Stack::Preview
- Inherits:
-
ComponentPreview
- Object
- ComponentPreview
- Irelia::Stack::Preview
- Defined in:
- app/components/irelia/stack/preview.rb
Instance Method Summary collapse
- #default(direction: :horizontal, justify: :flex_start, items: :baseline, grow: false) ⇒ Object
- #horizontal(justify: :flex_start, items: :baseline, grow: false) ⇒ Object
- #vertical(justify: :flex_start, items: :baseline, grow: false) ⇒ Object
Instance Method Details
#default(direction: :horizontal, justify: :flex_start, items: :baseline, grow: false) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/components/irelia/stack/preview.rb', line 13 def default(direction: :horizontal, justify: :flex_start, items: :baseline, grow: false) render_with_template(locals: { direction: direction, justify: justify, items: items, grow: grow }) end |
#horizontal(justify: :flex_start, items: :baseline, grow: false) ⇒ Object
27 28 29 30 31 32 33 |
# File 'app/components/irelia/stack/preview.rb', line 27 def horizontal(justify: :flex_start, items: :baseline, grow: false) render_with_template(locals: { justify: justify, items: items, grow: grow }) end |
#vertical(justify: :flex_start, items: :baseline, grow: false) ⇒ Object
40 41 42 43 44 45 46 |
# File 'app/components/irelia/stack/preview.rb', line 40 def vertical(justify: :flex_start, items: :baseline, grow: false) render_with_template(locals: { justify: justify, items: items, grow: grow }) end |