2022-11-25 23:54:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Pajamas
|
|
|
|
class ProgressComponentPreview < ViewComponent::Preview
|
|
|
|
# Progress
|
|
|
|
# ---
|
|
|
|
#
|
|
|
|
# See its design reference [here](https://design.gitlab.com/components/progress-bar).
|
|
|
|
#
|
2023-01-13 00:05:48 +05:30
|
|
|
# @param value range { min: 0, max: 100, step: 1 }
|
|
|
|
# @param variant select {{ Pajamas::ProgressComponent::VARIANT_OPTIONS }}
|
2022-11-25 23:54:43 +05:30
|
|
|
def default(value: 50, variant: :primary)
|
|
|
|
render Pajamas::ProgressComponent.new(value: value, variant: variant)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|