Sha256: 52bb21f68715d028835a2f9ad80fe032fefe20446bebd15cb6c5bdb7e40623fd
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true module Grid module Container class ContainerComponent < ViewComponent::Base def initialize(**options) @container = options[:container] @classes = options[:classes] @container_class = container_class end private def container_class @container.present? ? @container : 'container' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems