Sha256: 43e9f41f64cfea6f228d52705e5984f631793d35666332ccfd3d848fca56b902

Contents?: true

Size: 629 Bytes

Versions: 32

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Beta
    # @label Text
    class TextPreview < ViewComponent::Preview
      # @label Playground
      #
      # @param tag [Symbol] select [div, p, span]
      # @param content [String] text
      def playground(tag: :span, content: "Text")
        render(Primer::Beta::Text.new(tag: tag)) { content }
      end

      # @label Default options
      #
      # @param tag [Symbol] select [div, p, span]
      # @param content [String] text
      def default(tag: :span, content: "Text")
        render(Primer::Beta::Text.new(tag: tag)) { content }
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
primer_view_components-0.0.116 previews/primer/beta/text_preview.rb
primer_view_components-0.0.115 previews/primer/beta/text_preview.rb
primer_view_components-0.0.114 previews/primer/beta/text_preview.rb
primer_view_components-0.0.113 previews/primer/beta/text_preview.rb
primer_view_components-0.0.112 previews/primer/beta/text_preview.rb
primer_view_components-0.0.111 previews/primer/beta/text_preview.rb
primer_view_components-0.0.110 previews/primer/beta/text_preview.rb
primer_view_components-0.0.109 previews/primer/beta/text_preview.rb
primer_view_components-0.0.108 previews/primer/beta/text_preview.rb
primer_view_components-0.0.107 previews/primer/beta/text_preview.rb
primer_view_components-0.0.106 previews/primer/beta/text_preview.rb
primer_view_components-0.0.105 previews/primer/beta/text_preview.rb