Sha256: 2de4249115d1a22db3f57b21cf4f0ee72cb4bbb9481d026ef48bfd8f889ffe80
Contents?: true
Size: 1.12 KB
Versions: 18
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true # Setup Playground to use all available component props # Setup Features to use individual component props and combinations module Primer module OpenProject # @label BorderGrid class BorderGridPreview < ViewComponent::Preview # @label Playground # @param spacious [Boolean] toggle def playground(spacious: false) render(Primer::OpenProject::BorderGrid.new(spacious: spacious)) do |grid| grid.with_row { "Block 1" } grid.with_row { "Block 2" } grid.with_row { "Block 3" } end end # @label Default Options # # @snapshot def default() render(Primer::OpenProject::BorderGrid.new) do |grid| grid.with_row { "Block 1" } grid.with_row { "Block 2" } grid.with_row { "Block 3" } end end # @label Spacious def spacious() render(Primer::OpenProject::BorderGrid.new(spacious: true)) do |grid| grid.with_row { "Block 1" } grid.with_row { "Block 2" } grid.with_row { "Block 3" } end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems