= content_tag_for :article, tabs, 'component',
  id: tabs.anchor_name,
  data: {component_key: tabs.key} do

  .inner
    = tabs.decorate.h1

    /! Nav tabs
    ul.nav.nav-tabs role='tablist'
      - tabs.items.each_with_index do |item, i|
        li[class=('active' if i.zero?)]
          a data-toggle='tab' href="##{dom_id(item)}" role='tab'
            = item.decorate.icon_image
            = item.h1

    /! Tab panes
    .tab-content
      - tabs.items.each_with_index do |item, i|
        .tab-pane.fade id=dom_id(item) class=('active in' if i.zero?)
          - if item_capture = options[:custom_items] && options[:custom_items][item.key]
            = item_capture
          - else
            = component item.key

= component_tag_for tabs do
  .inner
    = tabs.decorate.h1

    /! Nav tabs
    ul.nav.nav-tabs role='tablist'
      - tabs.items.each_with_index do |item, i|
        li[class=('active' if i.zero?)]
          a data-toggle='tab' href="##{dom_id(item)}" role='tab'
            = item.decorate.icon_image
            = item.h1

    /! Tab panes
    .tab-content
      - tabs.items.each_with_index do |item, i|
        .tab-pane.fade id=dom_id(item) class=('active in' if i.zero?)
          - if item_capture = options[:custom_items] && options[:custom_items][item.key]
            = item_capture
          - else
            = component item.key

Use component_tag_for for tabs too
Use component_tag_for for tabs too

polomarte/martian_components,polomarte/martian_components,polomarte/martian_components