Welcome to mirror list, hosted at ThFree Co, Russian Federation.

progress_component.rb « pajamas « components « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1365da138635a8a581d286d915a779365961e59c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Pajamas
  class ProgressComponent < Pajamas::Component
    def initialize(value: 0, variant: :primary)
      @value = value
      @variant = filter_attribute(variant, VARIANT_OPTIONS, default: :primary)
    end

    VARIANT_OPTIONS = [:primary, :success].freeze
  end
end