Sha256: 14afee6e53262f9affba32291d90c8296151cfdff4435a157f21c0449bea64cb

Contents?: true

Size: 328 Bytes

Versions: 41

Compression:

Stored size: 328 Bytes

Contents

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

        def call
          coco_button(**options) do
            content || value
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
coveragebook_components-0.5.0 app/components/coco/app/fields/button_component.rb