Sha256: 504ebd6d7aaa05c7bf37f8069bc794f5b645020016b4c378228c595ccc264273

Contents?: true

Size: 541 Bytes

Versions: 7

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

module Primer
  # @label ProgressBarComponent
  class ProgressBarComponentPreview < ViewComponent::Preview
    # @label Default Options
    #
    # @param size [Symbol] select [default, small, large]
    def default(size: :default)
      render(Primer::ProgressBarComponent.new(size: size)) do |component|
        component.with_item(percentage: 10)
        component.with_item(bg: :accent_emphasis, percentage: 20)
        component.with_item(bg: :danger_emphasis, percentage: 30)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
primer_view_components-0.0.104 previews/primer/progress_bar_component_preview.rb
primer_view_components-0.0.103 previews/primer/progress_bar_component_preview.rb
primer_view_components-0.0.102 previews/primer/progress_bar_component_preview.rb
primer_view_components-0.0.101 previews/primer/progress_bar_component_preview.rb
primer_view_components-0.0.100 previews/primer/progress_bar_component_preview.rb
primer_view_components-0.0.99 previews/primer/progress_bar_component_preview.rb
primer_view_components-0.0.98 previews/primer/progress_bar_component_preview.rb