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 =

DOCS: A component that contains many Protos::Tab components daisyui.com/components/tab/

{
  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



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

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

#view_templateObject



34
35
36
# File 'lib/protos/tabs.rb', line 34

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