debian-mirror-gitlab/spec/components/previews/pajamas/progress_component_preview.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
444 B
Ruby
Raw Normal View History

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).
#
# @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