Sha256: 51ffd309dd250bba3672ccc2f4259ab682d77ba1ee63c3401b7fd0974bddb6ad

Contents?: true

Size: 550 Bytes

Versions: 25

Compression:

Stored size: 550 Bytes

Contents

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

    THEMES = [
      "positive",
      "negative",
      "warning",
      "info"
    ]

    DEFAULT_THEME = "info"

    accepts_option :size, from: %i[xs sm md lg], default: :md
    accepts_option :style, from: %i[subtle vivid inverse compact], default: :subtle
    accepts_option :theme, from: THEMES, default: DEFAULT_THEME

    attr_reader :icon_name

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.7 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.6 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.5 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.4 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.3 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.2 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.1 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.19.0 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.18.8 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.18.7 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.18.0 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.7 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.6 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.5 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.4 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.3 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.2 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.1 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.17.0 app/components/coco/indicators/stamp/stamp.rb