Sha256: 5078555b51ddd32c7102416c474dd5d6800ca223d137e8b89bc414227e139449
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true module Yattho 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(Yattho::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(Yattho::Beta::Text.new(tag: tag)) { content } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | previews/yattho/beta/text_preview.rb |
yattho_view_components-0.0.1 | previews/yattho/beta/text_preview.rb |