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