class FormComponentPreview
Public Instance Methods
default()
click to toggle source
# 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_actions()
click to toggle source
# File lib/alveole/previews/form_component_preview.rb, line 13 def without_actions render(FormComponent.new) do |_form| tag.span('Example content') end end