Class: Playbook::PbNav::Nav
- Inherits:
-
KitBase
- Object
- ViewComponent::Base
- KitBase
- Playbook::PbNav::Nav
show all
- Defined in:
- app/pb_kits/playbook/pb_nav/nav.rb
Instance Method Summary
collapse
Methods inherited from KitBase
#object
included
Methods included from ZIndex
included
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
#initialize, #prop
#pb_rails
#pb_form_with
Instance Method Details
#borderless_class ⇒ Object
25
26
27
|
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 25
def borderless_class
borderless ? "borderless" : nil
end
|
#classname ⇒ Object
17
18
19
|
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 17
def classname
generate_classname("pb_nav_list", variant, orientation, highlight_class, borderless_class)
end
|
#highlight_class ⇒ Object
21
22
23
|
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 21
def highlight_class
highlight ? "highlight" : nil
end
|