debian-mirror-gitlab/spec/components/previews/pajamas/progress_component_preview.rb
2023-01-12 18:35:48 +00:00

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