Sha256: d47efc8be3e652352703047d8c1f3bb17dd22415318acc1dc6e83ffdda3fe993

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

module Coco
  class Tabs < Coco::Component
    include Concerns::AcceptsOptions

    accepts_option :fit, from: [:auto, :full], default: :auto

    renders_many :tabs, ->(*args, active: false, **kwargs, &block) do
      tag.li(class: {active:}, role: "tab") do
        coco_button(*args, **kwargs, theme: :blank, fit: get_option_value(:fit), &block)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.7 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.6 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.5 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.4 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.3 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.2 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.1 app/components/coco/navigation/tabs/tabs.rb
coveragebook_components-0.19.0 app/components/coco/navigation/tabs/tabs.rb