Sha256: dab44eea3ff90e1ed9d3e2890725ac6d723aad9efd51e7dead328cbfec4f486d

Contents?: true

Size: 604 Bytes

Versions: 45

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Beta
    # @label Spinner
    class SpinnerPreview < ViewComponent::Preview
      # @label Playground
      #
      # @param size [Symbol] select [small, medium, large]
      def playground(size: :medium, sr_text: "Loading content...")
        render(Primer::Beta::Spinner.new(size: size, sr_text: sr_text))
      end

      # @label Default Options
      #
      # @param size [Symbol] select [small, medium, large]
      # @snapshot
      def default(size: :medium)
        render(Primer::Beta::Spinner.new(size: size))
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.35.2 previews/primer/beta/spinner_preview.rb
openproject-primer_view_components-0.35.1 previews/primer/beta/spinner_preview.rb
primer_view_components-0.26.1 previews/primer/beta/spinner_preview.rb
openproject-primer_view_components-0.35.0 previews/primer/beta/spinner_preview.rb
primer_view_components-0.26.0 previews/primer/beta/spinner_preview.rb