Class: Protos::Tabs

Inherits:
Component show all
Defined in:
lib/protos/tabs.rb,
lib/protos/tabs/tab.rb

Defined Under Namespace

Classes: Tab

Constant Summary collapse

SIZES =
{
  xs: "tabs-xs",
  sm: "tabs-sm",
  md: "tabs-md",
  lg: "tabs-lg"
}.freeze

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#tabObject



40
# File 'lib/protos/tabs.rb', line 40

def tab(...) = render Tab.new(...)

#view_templateObject



36
37
38
# File 'lib/protos/tabs.rb', line 36

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