Sha256: 4a17596753281a59b9987b801258412904a7fa690b3ef7586393dac3153b8a6f
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
module Coco module App module Blocks 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 end
Version data entries
3 entries across 3 versions & 1 rubygems