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