Sha256: 27bc988c47e262dc0f2e9b262f45a015c5c576d85a38e03f253e936cb5d2531c

Contents?: true

Size: 516 Bytes

Versions: 5

Compression:

Stored size: 516 Bytes

Contents

module Coco
  module App
    class ContactCallout < Coco::Component
      renders_one :avatar, ->(*args, **kwargs) do
        coco_avatar(*args, **kwargs, size: :full)
      end

      renders_one :action, ->(*args, **kwargs, &block) do
        coco_button(*args, theme: :primary, **kwargs, &block)
      end

      renders_many :contact_numbers, ->(region, number) do
        @contact_numbers << {region:, number:}
      end

      def initialize(**kwargs)
        @contact_numbers = []
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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