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