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

progress_component_preview.rb « pajamas « previews « components « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4de07872a8041ea8e167aadb6205fcd697496a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Pajamas
  class ProgressComponentPreview < ViewComponent::Preview
    # Progress
    # ---
    #
    # See its design reference [here](https://design.gitlab.com/components/progress-bar).
    #
    # @param value number
    # @param variant select [primary, success]
    def default(value: 50, variant: :primary)
      render Pajamas::ProgressComponent.new(value: value, variant: variant)
    end
  end
end