Sha256: fa9c08ddd581b3563986372137f30b594b75bd6b8966eaba059937d2d5664dfc

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

module Coco
  module App
    module Fields
      class SubmitComponent < ViewComponent::Form::SubmitComponent
        include Concerns::ActsAsFieldWithOptions
        include Coco::SharedHelper

        def call
          coco_button(**options, type: :submit) do
            content || value
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/app/fields/submit_component.rb
coveragebook_components-0.12.1 app/components/coco/app/fields/submit_component.rb
coveragebook_components-0.12.0 app/components/coco/app/fields/submit_component.rb
coveragebook_components-0.11.0 app/components/coco/app/fields/submit_component.rb
coveragebook_components-0.10.1.beta.2 app/components/coco/app/fields/submit_component.rb
coveragebook_components-0.10.1.beta.1 app/components/coco/app/fields/submit_component.rb
coveragebook_components-0.10.1.beta.0 app/components/coco/app/fields/submit_component.rb