Drupal Radix Theme
  • Introduction
    • Overview & Support
  • Installation
    • Requirements
    • Getting Started
    • Setup with ddev
  • Understanding Radix
    • Individual files and directories
    • Bootstrap Build
    • Bootswatch
  • Working with the components
    • Components: Intro
    • Components: A deep dive
    • An example component
    • The drupal-radix-cli
    • Copy and modify a component
  • Components
    • Accordion
    • Alerts
    • Badge
    • Block
    • Buttons
    • Button Group
    • Breadcrumb
    • Card
    • Carousel
    • Close button
    • Comment
    • Collapse
    • Details
    • Dropdown menu
    • Field
    • Field Comment
    • Fieldset
    • Figure
    • Form
    • Form: Element
    • Form Element Label
    • Form Element: Radio Checkbox
    • Heading
    • HTML
    • Image
    • Input
    • List group
    • Local Tasks
    • Media
    • Modal
    • Nav
    • Nav Item
    • Navbar
    • Navbar Brand
    • Node
    • Offcanvas
    • Page
    • Page: Content
    • Page: Footer
    • Page: Navigation
    • Page: Title
    • Pagination
    • Progress
    • Radios
    • Region
    • Select
    • Spinners
    • Table
    • Taxonomy
    • Textarea
    • Toasts
    • Tooltips
    • User
    • Views: view
    • Views: view--grid
    • Views: view--table
    • Views: view--unformatted
  • Misc
    • Migration and upgrading
    • Roadmap
    • Credits & Contributions
Powered by GitBook
On this page
  • Component Properties
  • Usage

Was this helpful?

  1. Components

List group

List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any content within.

PreviousInputNextLocal Tasks

Last updated 3 months ago

Was this helpful?

Component Properties

The List group component takes a variety of properties to customize its appearance and content:

  • list_group_html_tag (string) (default: 'ul'): The HTML tag for the list group.

  • list_group_item_html_tag (string) (default: 'li'): The HTML tag for the list group items.

  • list_group_item_variants (array) (default: []): An array of variants to apply to the list group items.

  • list_group_utility_classes (array) (default: []): An array of utility classes to apply to the list group.

  • list_group_item_utility_classes (array) (default: []): An array of utility classes to apply to the list group items.

  • list_group_attributes (array) (default: []): An array of attributes to apply to the list group.

  • list_group_item_attributes (array) (default: []): An array of attributes to apply to the list group items.

  • list_group_items (array) (default: []): An array of items to display in the list group.

  • numbered (bool) (default: false): Add numbers to the list group items.

  • horizontal (bool) (default: false): Display the list group items horizontally.

  • horizontal_breakpoint (string) (default: 'md'): The breakpoint to switch to a horizontal list group items.

Usage

{% include 'radix:list-group' with {
  numbered: true,
  horizontal: true,
  horizontal_breakpoint: 'lg',
  list_group_item_variants: 'danger',
  list_group_items: [
    {
      value: 'First item', 
    },
    {
      value: 'Second item', 
    },
    {
      value: 'Third item',
    },
  ]
} %}
Bootstrap docs