Sha256: 88e6c7c415bfd0bef644375d6321ae8828276c9267335093f7c298bbf8311cef
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
module Lookbook class Tabs::Tab::Component < Lookbook::Component def initialize(ref:, label: nil, hotkey: nil, disabled: nil, position: 0, **html_attrs) @ref = ref @label = label @hotkey = hotkey @disabled = disabled @position = position super(**html_attrs) end def label @label.presence || content end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.beta.0 | app/components/lookbook/tabs/tab/component.rb |