Sha256: 5bc20ffbf6bfa4fc9596ee91dfa1b6ba1caa25d594c1dde037cedf8d665098c4

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Beta
    # @label Heading
    class HeadingPreview < ViewComponent::Preview
      # @label Default options
      #
      # @param tag [Symbol] select [h1, h2, h3, h4, h5, h6]
      # @param content [String] text
      def default(tag: :h2, content: "Heading")
        render(Primer::Beta::Heading.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/heading_preview.rb
primer_view_components-0.0.103 previews/primer/beta/heading_preview.rb
primer_view_components-0.0.102 previews/primer/beta/heading_preview.rb
primer_view_components-0.0.101 previews/primer/beta/heading_preview.rb
primer_view_components-0.0.100 previews/primer/beta/heading_preview.rb
primer_view_components-0.0.99 previews/primer/beta/heading_preview.rb
primer_view_components-0.0.98 previews/primer/beta/heading_preview.rb