Sha256: ace736987c0a86d09aa2a7e27112b79d34d8fcb04991db889a8e090ef360a599

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

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