List group
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_list_group(*args, &block)
:items
- expects an array of hashes with type
, text
, path
, active
, variant
, badge
as possible keys:variant
- Specify a variant for the button. Variant represent bootstraps contextual classes and can have one of the following values::primary, :secondary, :success, :info, :warning, :info, :light, :dark
or your custom contextual class via class
.active
- If set true list item will have an active classbadge
- If given, renders an additional badgeicon
- Name of desired icon which will prepend the (optionally) given texttype
- Can be nil
, link
, transition
, action
, label
or tab
div
(rather than ul
) when one of the items is link
, transition
, action
or tab
horizontal
- to change the layout of list group items from vertical to horizontal across all breakpoints.horizontal_size
- choose sm
, md
, lg
, xl
, xxl
to make a list group horizontal starting at that breakpoint’s min-widthvariant
- If set to :flush
, borders and rounded corners will be removed