Sha256: 6374976db584eef3fb21dc30ab9be87d88dd83f99e10e426830f76274e8b33ab

Contents?: true

Size: 823 Bytes

Versions: 15

Compression:

Stored size: 823 Bytes

Contents

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

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

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

        attr_reader :home_path

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
coveragebook_components-0.10.0 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.9.1 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.9.0 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.9 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.8 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.7 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.6 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.5 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.4 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.3 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.2 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.1 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.0 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.0.beta.3 app/components/coco/app/blocks/header/header.rb
coveragebook_components-0.8.0.beta.2 app/components/coco/app/blocks/header/header.rb