Sha256: 3d9e970c1fd80478863270f462a56050689349a4773e798704960d535fa8aa14

Contents?: true

Size: 541 Bytes

Versions: 29

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Beta
    # @label CloseButton
    class CloseButtonPreview < ViewComponent::Preview
      # @label Playground
      #
      # @param type [Symbol] select [button, submit]
      def playground(type: :button)
        render(Primer::Beta::CloseButton.new(type: type))
      end

      # @label Default options
      #
      # @param type [Symbol] select [button, submit]
      def default(type: :button)
        render(Primer::Beta::CloseButton.new(type: type))
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
primer_view_components-0.1.9 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.8 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.7 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.6 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.5 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.4 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.3 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.2 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.1 previews/primer/beta/close_button_preview.rb
primer_view_components-0.1.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.123 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.122 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.121 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.120 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.119 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.118 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.117 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.116 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.115 previews/primer/beta/close_button_preview.rb
primer_view_components-0.0.114 previews/primer/beta/close_button_preview.rb