class NfgUi::Components::Patterns::TileSection

TileSection doc coming soon

Public Instance Methods

component_family() click to toggle source
# File lib/nfg_ui/components/patterns/tile_section.rb, line 14
def component_family
  :tile
end
heading() click to toggle source
# File lib/nfg_ui/components/patterns/tile_section.rb, line 10
def heading
  options.fetch(:heading, nil)
end
render() { |: body))| ... } click to toggle source
# File lib/nfg_ui/components/patterns/tile_section.rb, line 18
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