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.15.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.14.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.13.1 previews/primer/beta/close_button_preview.rb
primer_view_components-0.13.2 previews/primer/beta/close_button_preview.rb
primer_view_components-0.13.1 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.13.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.13.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.12.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.11.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.12.1 previews/primer/beta/close_button_preview.rb
primer_view_components-0.10.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.11.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.10.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.9.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.9.1 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.9.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.8.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.8.0 previews/primer/beta/close_button_preview.rb
primer_view_components-0.7.0 previews/primer/beta/close_button_preview.rb
openproject-primer_view_components-0.7.0 previews/primer/beta/close_button_preview.rb