Sha256: 43e9f41f64cfea6f228d52705e5984f631793d35666332ccfd3d848fca56b902
Contents?: true
Size: 629 Bytes
Versions: 32
Compression:
Stored size: 629 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 def default(tag: :span, content: "Text") render(Primer::Beta::Text.new(tag: tag)) { content } end end end end
Version data entries
32 entries across 32 versions & 1 rubygems