Sha256: 5ea403f79e813913769c4e5cb36a8027675414a906bffa7f0813f8c89156b682

Contents?: true

Size: 425 Bytes

Versions: 12

Compression:

Stored size: 425 Bytes

Contents

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

    THEMES = ["neutral-dark", "neutral-light", "neutral-muted", "primary"]

    accepts_option :size, from: %i[sm md], default: :md
    accepts_option :theme, from: THEMES, default: "neutral-dark"

    attr_reader :icon_name

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coveragebook_components-0.18.0 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.7 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.6 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.5 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.4 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.3 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.2 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.1 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.17.0 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.16.0 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.15.0 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.14.0 app/components/coco/indicators/badge/badge.rb