Sha256: c282b6349bcc1c0275145740a561f057818cfd716c3f656b0008f42d90cb5130

Contents?: true

Size: 855 Bytes

Versions: 29

Compression:

Stored size: 855 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Beta
    # @label BaseButton
    class BaseButtonPreview < ViewComponent::Preview
      # @label Playground
      #
      # @param type [Symbol] select [button, submit]
      # @param tag [Symbol] select [button, a, summary]
      # @param block [Boolean] toggle
      def playground(tag: :button, block: false, type: :button)
        render(Primer::Beta::BaseButton.new(tag: tag, block: block, type: type)) { "Button" }
      end

      # @label Default options
      #
      # @param type [Symbol] select [button, submit]
      # @param tag [Symbol] select [button, a, summary]
      # @param block [Boolean] toggle
      def default(tag: :button, block: false, type: :button)
        render(Primer::Beta::BaseButton.new(tag: tag, block: block, type: type)) { "Button" }
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
primer_view_components-0.0.113 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.112 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.111 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.110 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.109 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.108 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.107 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.106 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.105 previews/primer/beta/base_button_preview.rb