Sha256: 51ffd309dd250bba3672ccc2f4259ab682d77ba1ee63c3401b7fd0974bddb6ad

Contents?: true

Size: 550 Bytes

Versions: 26

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

26 entries across 26 versions & 1 rubygems

Version Path
coveragebook_components-0.17.0 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.16.0 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.15.0 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.14.0 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.13.1 app/components/coco/indicators/stamp/stamp.rb
coveragebook_components-0.13.0 app/components/coco/indicators/stamp/stamp.rb