Sha256: c282b6349bcc1c0275145740a561f057818cfd716c3f656b0008f42d90cb5130
Contents?: true
Size: 855 Bytes
Versions: 29
Compression:
Stored size: 855 Bytes
Contents
# frozen_string_literal: true module Primer module Beta # @label BaseButton class BaseButtonPreview < ViewComponent::Preview # @label Playground # # @param type [Symbol] select [button, submit] # @param tag [Symbol] select [button, a, summary] # @param block [Boolean] toggle def playground(tag: :button, block: false, type: :button) render(Primer::Beta::BaseButton.new(tag: tag, block: block, type: type)) { "Button" } end # @label Default options # # @param type [Symbol] select [button, submit] # @param tag [Symbol] select [button, a, summary] # @param block [Boolean] toggle def default(tag: :button, block: false, type: :button) render(Primer::Beta::BaseButton.new(tag: tag, block: block, type: type)) { "Button" } end end end end
Version data entries
29 entries across 29 versions & 1 rubygems