Class: Compass::Layout::BreadcrumbItem

Inherits:
ApplicationComponent show all
Defined in:
app/components/compass/layout/breadcrumb_item.rb

Instance Method Summary collapse

Instance Method Details

#icon_textObject



11
12
13
14
15
16
# File 'app/components/compass/layout/breadcrumb_item.rb', line 11

def icon_text
  capture do
    concat pb_rails("icon", props: { color: "text_light_dark", icon: }) if icon.present?
    concat pb_rails("detail", props: { color: "light", dark: true, text: label }) if label.present?
  end
end