Class: PhlexUI::Tabs

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex_ui/tabs.rb

Defined Under Namespace

Classes: Content, List, Trigger

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#before_template

Constructor Details

#initialize(default: nil, **attrs) ⇒ Tabs

Returns a new instance of Tabs.



5
6
7
8
# File 'lib/phlex_ui/tabs.rb', line 5

def initialize(default: nil, **attrs)
  @default = default
  super(**attrs)
end

Instance Method Details

#view_templateObject



10
11
12
# File 'lib/phlex_ui/tabs.rb', line 10

def view_template(&)
  div(**attrs, &)
end