Class: Protos::Tabs
- Defined in:
- lib/protos/tabs.rb,
lib/protos/tabs/tab.rb
Defined Under Namespace
Classes: Tab
Constant Summary collapse
- Styles =
Types::Coercible::Symbol.enum( :default, :boxed, :bordered, :lifted )
- Sizes =
Types::Coercible::Symbol.enum( :xs, :sm, :md, :lg )
- STYLES =
{ default: "", bordered: "tabs-bordered", boxed: "tabs-boxed", lifted: "tabs-lifted" }.freeze
- SIZES =
{ xs: "tabs-xs", sm: "tabs-sm", md: "tabs-md", lg: "tabs-lg" }.freeze
Instance Method Summary collapse
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#tab ⇒ Object
51 |
# File 'lib/protos/tabs.rb', line 51 def tab(...) = render Tab.new(...) |
#view_template ⇒ Object
47 48 49 |
# File 'lib/protos/tabs.rb', line 47 def view_template(&) div(**attrs, &) end |