Sha256: b5beee4fef95afd3bc4c4ea289b98bbdb7478492c944d0ad9775712515455974

Contents?: true

Size: 298 Bytes

Versions: 5

Compression:

Stored size: 298 Bytes

Contents

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

      def call
        coco_button(**options) 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/button_component.rb
coveragebook_components-0.15.0 app/components/coco/fields/button_component.rb
coveragebook_components-0.14.0 app/components/coco/fields/button_component.rb
coveragebook_components-0.13.1 app/components/coco/fields/button_component.rb
coveragebook_components-0.13.0 app/components/coco/fields/button_component.rb