Sha256: 6f65d96cc0ca004bc8a196c2d12bf21c99ee4d7b06d9b2feec9874df3e1685cd
Contents?: true
Size: 537 Bytes
Versions: 3
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true module Grid module Row class RowComponent < ViewComponent::Base renders_many :columns, Columns::ColumnsComponent def initialize(**options) @classes = options[:classes] @styles = options[:styles] end def call content_tag(:div, content, class: default_plus_passed_classes, style: @styles ) end private def default_plus_passed_classes "row #{@classes}".strip end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bsvc-0.1.2 | app/components/grid/row/row_component.rb |
bsvc-0.1.1 | app/components/grid/row/row_component.rb |
bsvc-0.1.0 | app/components/grid/row/row_component.rb |