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