module Coco class ImageUploader < Coco::Component include Concerns::AcceptsOptions accepts_option :click, from: [true, false], default: true accepts_option :drop, from: [true, false], default: true attr_reader :name, :accept def initialize(accept: "image/*", **kwargs) @accept = accept end def clickable? get_option_value(:click) end def droppable? get_option_value(:drop) end end end