Sha256: 5fb3193b7d1c8082c1e4a458e2612639a5cab9045db2174325c0cdfe85820bd3

Contents?: true

Size: 627 Bytes

Versions: 125

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

125 entries across 125 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.47.1 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.47.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.34.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.46.1 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.46.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.45.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.44.3 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.44.2 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.44.1 previews/primer/beta/close_button_preview.rb
primer_view_components-0.33.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.44.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.43.1 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.43.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.32.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.42.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.31.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.41.1 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.41.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.40.0 previews/primer/beta/close_button_preview.rb