Sha256: 3be59a7cdd081625f7961ffa41d97299e7e64680f5959900c39825e4ec969df6

Contents?: true

Size: 646 Bytes

Versions: 7

Compression:

Stored size: 646 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Alpha
    # @label ButtonMarketing
    class ButtonMarketingPreview < ViewComponent::Preview
      # @label Default options
      # @param scheme [Symbol] select [default, primary, outline, transparent]
      # @param variant [Symbol] select [default, large]
      # @param tag [Symbol] select [button, a]
      # @param type [Symbol] select [button, submit]
      def default(tag: :button, type: :button, scheme: :default, variant: :default)
        render(Primer::Alpha::ButtonMarketing.new(tag: tag, type: type, scheme: scheme, variant: variant)) { "Default" }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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