Sha256: 84d7cc94bb7bdde4fe11a83f81ce8974d40adb5ca0e274e524a31a7c27f732f5

Contents?: true

Size: 537 Bytes

Versions: 22

Compression:

Stored size: 537 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)
        render(Primer::Beta::Spinner.new(size: size))
      end

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
primer_view_components-0.3.1 previews/primer/beta/spinner_preview.rb
primer_view_components-0.3.0 previews/primer/beta/spinner_preview.rb
primer_view_components-0.2.0 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.9 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.8 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.7 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.6 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.5 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.4 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.3 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.2 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.1 previews/primer/beta/spinner_preview.rb
primer_view_components-0.1.0 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.123 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.122 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.121 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.120 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.119 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.118 previews/primer/beta/spinner_preview.rb
primer_view_components-0.0.117 previews/primer/beta/spinner_preview.rb