Sha256: 25de8db94063821c35d78eb917c62bc78ba7e68ba5e3e88d549760692b8065a4
Contents?: true
Size: 659 Bytes
Versions: 130
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true module NfgUi module Components module Patterns # TileSection doc coming soon class TileSection < NfgUi::Components::Base include NfgUi::Components::Utilities::Iconable def heading options.fetch(:heading, nil) end def component_family :tile end def render super do if heading concat(NfgUi::Components::Foundations::Typeface.new({ heading: heading, icon: icon }, view_context).render) end concat((block_given? ? yield : body)) end end end end end end
Version data entries
130 entries across 130 versions & 1 rubygems