Sha256: 81372d77deb1d611cf91181e4281a9cc9051c02c03214215be9113eb5ed8fe15
Contents?: true
Size: 445 Bytes
Versions: 66
Compression:
Stored size: 445 Bytes
Contents
module Lookbook class Tabs::DropdownTab::Component < Lookbook::BaseComponent def initialize(name:, label: nil, hotkey: nil, disabled: nil, position: 0, theme: :toolbar, **html_attrs) @name = name @label = label @hotkey = hotkey @disabled = disabled @position = position @theme = theme super(**html_attrs) end def label @label.presence || content || @name.titleize end end end
Version data entries
66 entries across 66 versions & 1 rubygems