Sha256: 5710386686a42b8c04433222afa9da998c40423167958b99e4f950709d4ee15d

Contents?: true

Size: 309 Bytes

Versions: 20

Compression:

Stored size: 309 Bytes

Contents

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

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.7 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.6 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.5 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.4 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.3 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.2 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.1 app/components/coco/fields/submit_component.rb
coveragebook_components-0.19.0 app/components/coco/fields/submit_component.rb
coveragebook_components-0.18.8 app/components/coco/fields/submit_component.rb
coveragebook_components-0.18.7 app/components/coco/fields/submit_component.rb
coveragebook_components-0.18.0 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.7 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.6 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.5 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.4 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.3 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.2 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.1 app/components/coco/fields/submit_component.rb
coveragebook_components-0.17.0 app/components/coco/fields/submit_component.rb