Sha256: 793e47d55751cd2690d3feb27d9be394e658d25ddb9a7dea0e9bf1ac0b9bd3c3
Contents?: true
Size: 290 Bytes
Versions: 39
Compression:
Stored size: 290 Bytes
Contents
# frozen_string_literal: true module PandaCms class GridComponent < ViewComponent::Base def initialize(columns: 1, spans: [1]) @columns = "grid-cols-#{columns}" @colspans = [] spans.each do |span| @colspans << "col-span-#{span}" end end end end
Version data entries
39 entries across 39 versions & 1 rubygems