nav
component, implemented in Ruby. Use it like any other matestack component in your apps, pages and components. It offers customizable options to simply achieve what is possible in bootstrap with this component. See below for more information about the possible options.bs_tab_nav(*args, &block)
id
items
- expects an array with hashes with id
, text
, active
as possible keysactive
to true, if the current item is the active elementvariant
- Either :tabs
or :pills
fill
- If set true, all available space will be filled proportionately with your .nav-itemsjustified
- If set true, all horizontal space will be occupied by nav links, but unlike the .nav-fill above, every nav item will be the same width.vertical
- If set true, navigation items will be stacked uphorizontal
- Change the horizontal alignment of your nav with flexbox utilities. By default, navs are left-aligned, but you can easily change them to :center
or :right
aligned.vertical_up_to_sm
- If set to to true, responsive utility classes are applied for desired responsive behaviorvertical_up_to_md
- If set to to true, responsive utility classes are applied for desired responsive behaviorvertical_up_to_xl
- If set to to true, responsive utility classes are applied for desired responsive behaviorbs_tab_nav_content(*args, &block)
id
, need to match desired tab trigger buttonactive
, set active
to true, if the current item is the active element