Sha256: 11b65cad2f213fde396f172be1bf1f1a5997c9b206e545d006f1c5adef35446c
Contents?: true
Size: 681 Bytes
Versions: 125
Compression:
Stored size: 681 Bytes
Contents
# frozen_string_literal: true module Primer module Beta # @label Heading class HeadingPreview < ViewComponent::Preview # @label Playground # # @param tag [Symbol] select [h1, h2, h3, h4, h5, h6] # @param content [String] text def playground(tag: :h2, content: "Heading") render(Primer::Beta::Heading.new(tag: tag)) { content } end # @label Default options # # @param tag [Symbol] select [h1, h2, h3, h4, h5, h6] # @param content [String] text # @snapshot def default(tag: :h2, content: "Heading") render(Primer::Beta::Heading.new(tag: tag)) { content } end end end end
Version data entries
125 entries across 125 versions & 2 rubygems