Sha256: 743b2d0dbd820905e5a0442fcf2cb9b91b2d2783e85c198ee0f5f9f22c857547

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.16.0 app/components/coco/fields/submit_component.rb
coveragebook_components-0.15.0 app/components/coco/fields/submit_component.rb
coveragebook_components-0.14.0 app/components/coco/fields/submit_component.rb
coveragebook_components-0.13.1 app/components/coco/fields/submit_component.rb
coveragebook_components-0.13.0 app/components/coco/fields/submit_component.rb