Sha256: 7cb378bbcb08752031945f91a270b54fbf2053184c42b11b8d0b828d65452692
Contents?: true
Size: 647 Bytes
Versions: 125
Compression:
Stored size: 647 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 # @snapshot def default(tag: :span, content: "Text") render(Primer::Beta::Text.new(tag: tag)) { content } end end end end
Version data entries
125 entries across 125 versions & 2 rubygems