Class: FormComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/alveole/previews/form_component_preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject



4
5
6
7
8
9
10
11
# File 'lib/alveole/previews/form_component_preview.rb', line 4

def default
  render(FormComponent.new) do |form|
    form.actions do
      tag.span('Example actions')
    end
    tag.span('Example content')
  end
end

#without_actionsObject



13
14
15
16
17
# File 'lib/alveole/previews/form_component_preview.rb', line 13

def without_actions
  render(FormComponent.new) do |_form|
    tag.span('Example content')
  end
end