Sha256: 2f90ede3604669c8cdb02d9ea17dfd29b4d4ec07c64283905c9578ab1331d50e

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Beta
    # @label BaseButton
    class BaseButtonPreview < ViewComponent::Preview
      # @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

7 entries across 7 versions & 1 rubygems

Version Path
primer_view_components-0.0.104 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.103 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.102 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.101 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.100 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.99 previews/primer/beta/base_button_preview.rb
primer_view_components-0.0.98 previews/primer/beta/base_button_preview.rb