Sha256: cd400bc921b0b6df674bf259c26458621e80a4737ab765497afe8c2a1bfd6a3b

Contents?: true

Size: 498 Bytes

Versions: 25

Compression:

Stored size: 498 Bytes

Contents

module Coco
  module App
    module Blocks
      class NavBar < Coco::Component
        include Coco::AppHelper

        component_name :app_navbar

        renders_many :primary_buttons, ->(*a, **k, &b) { nav_button(*a, **k, &b) }

        renders_many :secondary_buttons, ->(*a, **k, &b) { nav_button(*a, **k, &b) }

        def nav_button(*args, **kwargs, &block)
          coco_button(*args, **kwargs, theme: nil, size: nil, class: "nav-button", &block)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
coveragebook_components-0.7.10 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.9 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.8 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.7 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.6 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.5 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.4 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.3 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.2 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.1 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.7.0 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.6.5 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.6.4 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.6.3 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.6.2 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.6.1 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.6.0 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.5.7 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.5.6 app/components/coco/app/blocks/nav_bar/nav_bar.rb
coveragebook_components-0.5.5 app/components/coco/app/blocks/nav_bar/nav_bar.rb