16 lines
504 B
Ruby
16 lines
504 B
Ruby
# 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 range { min: 0, max: 100, step: 1 }
|
|
# @param variant select {{ Pajamas::ProgressComponent::VARIANT_OPTIONS }}
|
|
def default(value: 50, variant: :primary)
|
|
render Pajamas::ProgressComponent.new(value: value, variant: variant)
|
|
end
|
|
end
|
|
end
|