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