Sha256: 533f5714a6f72dac859b8923ba73b923aebe20e42770284572689e33f8b44fda
Contents?: true
Size: 671 Bytes
Versions: 5
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true module Primer # @label Box class BoxPreview < ViewComponent::Preview # @label Playground # # @param content [String] text def playground(content: "Playground") render(Primer::Box.new) { content } end # @label Default def default(content: "Default") render(Primer::Box.new) { content } end # @label Border def border(content: "Box with border") render(Primer::Box.new(border: true, p: 3)) { content } end # @label Border Bottom def border_bottom(content: "Box with bottom border") render(Primer::Box.new(border: :bottom, p: 3)) { content } end end end
Version data entries
5 entries across 5 versions & 1 rubygems