Sha256: d07604a63ad5c650ad94fdc03da94506d3170d0c695d5ee33c77d4ca347a0335

Contents?: true

Size: 349 Bytes

Versions: 7

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

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