Sha256: df7041b1bc15994547a437755a333e36b79bd67091c97f8c19b697b5d07fb13d

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

class FormComponentPreview < ViewComponent::Preview
  layout false

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alveole-0.0.1 lib/alveole/previews/form_component_preview.rb