Sha256: e61478172385138b580c10f00e2763ae73c147c67fc3bfa7c7edabe355d60b23

Contents?: true

Size: 580 Bytes

Versions: 11

Compression:

Stored size: 580 Bytes

Contents

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

    THEMES = [
      "neutral-dark",
      "neutral-light",
      "neutral-muted",
      "primary",
      "positive",
      "negative",
      "warning",
      "info",
      "primary-light",
      "positive-light",
      "negative-light",
      "warning-light",
      "info-light"
    ]

    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

11 entries across 11 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.7 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.6 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.5 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.4 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.3 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.2 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.1 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.19.0 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.18.8 app/components/coco/indicators/badge/badge.rb
coveragebook_components-0.18.7 app/components/coco/indicators/badge/badge.rb