Sha256: ed646f8909ea9d24773795441e753e9058f9e04ff7b2343480be086da60bf174

Contents?: true

Size: 709 Bytes

Versions: 5

Compression:

Stored size: 709 Bytes

Contents

module Coco
  module App
    class Header < Coco::Component
      renders_one :primary_nav, ->(**kwargs) do
        Coco::ButtonGroup.new(
          theme: :text_neutral_light,
          collapsible: false,
          size: :xs,
          **kwargs
        )
      end

      renders_one :secondary_nav, ->(**kwargs) do
        Coco::ButtonGroup.new(
          theme: :text_neutral_light,
          collapsible: false,
          size: :xs,
          **kwargs
        )
      end

      renders_one :mobile_nav, ->(**kwargs) do
        Coco::App::NavDrawer.new(**kwargs)
      end

      attr_reader :home_path

      def initialize(home_path: nil, **)
        @home_path = home_path
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.16.0 app/components/coco/app/header/header.rb
coveragebook_components-0.15.0 app/components/coco/app/header/header.rb
coveragebook_components-0.14.0 app/components/coco/app/header/header.rb
coveragebook_components-0.13.1 app/components/coco/app/header/header.rb
coveragebook_components-0.13.0 app/components/coco/app/header/header.rb