Sha256: 90c3085a972b7d629d64b1a1a803f86872a50ec1a6e316cad6b346f3725d10bf

Contents?: true

Size: 249 Bytes

Versions: 5

Compression:

Stored size: 249 Bytes

Contents

module Coco
  class Badge < Coco::Component
    include Concerns::AcceptsOptions

    accepts_option :size, from: %i[sm md], default: :md

    attr_reader :icon_name

    def initialize(icon: nil, **kwargs)
      @icon_name = icon
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.13.1 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.13.0 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.12.2 app/components/coco/shared/badge/badge.rb
coveragebook_components-0.12.1 app/components/coco/shared/badge/badge.rb
coveragebook_components-0.12.0 app/components/coco/shared/badge/badge.rb