search results:

    • Standard
    • React
    Pricing Learn Community
    • + D
    • Light
    • Dark
    • System
    logo TW Elements
    • Getting started
      • Quick start
      • Tutorials
      • Design system
      • Local installation
      • Optimization
      • Dark mode
      • Theming
      • Changelog
      • Migrating to v2
      • Internationalization guide
      • Class customization
      • Icons Integration
    • CommercialNew
      • Pricing
      • License
      • Installation
      • Git & repository
      • Premium Support
    • Integrations
      • Angular
      • ASP.NET
      • Django
      • Express
      • Laravel
      • Next
      • Nuxt
      • Qwik
      • React
      • Remix
      • Solid
      • Svelte
      • SvelteKit
      • Vue
    • Content & styles
      • Animations
      • Animations Extended
      • Colors
      • Dividers
      • Figures
      • Headings
      • Hover effects
      • Icons
      • Images
      • Mask
      • Shadows
      • Typography
    • Navigation
      • Breadcrumbs
      • Footer
      • Headers
      • Mega menu
      • Navbar
      • Offcanvas
      • Pagination
      • Pills
      • Scrollspy
      • Sidenav
      • Tabs
    • Components
      • Accordion
      • Alerts
      • Avatar
      • Badges
      • Button group
      • Buttons
      • Cards
      • Carousel
      • Chips
      • Collapse
      • Dropdown
      • Gallery
      • Jumbotron
      • Lightbox
      • Link
      • List group
      • Modal
      • Notifications
      • Paragraphs
      • Placeholders
      • Popconfirm
      • Popover
      • Progress
      • Rating
      • Scroll back to top button
      • Social buttons
      • Spinners
      • Stepper
      • Testimonials
      • Timeline
      • Toast
      • Tooltip
      • Video
      • Video carousel
    • Forms
      • Autocomplete
      • Checkbox
      • Datepicker
      • Datetimepicker
      • File input
      • Form templates
      • Input Group
      • Inputs
      • Login form
      • Multi range slider
      • Radio
      • Range
      • Registration form
      • Search
      • Select
      • Switch
      • Textarea
      • Timepicker
      • Validation
    • Data
      • Charts
      • Charts advanced
      • Datatables
      • Tables
    • Methods
      • Clipboard
      • Infinite scroll
      • Lazy loading
      • Loading management
      • Ripple
      • Scrollbar
      • Smooth scroll
      • Sticky
      • Touch
    • Design Blocks
      • Admin Charts
      • Admin Complex
      • Admin Forms
      • Admin Maps
      • Admin Navigation
      • Admin tables
      • Banners
      • Contact
      • Content
      • CTA
      • FAQ
      • Features
      • Headers
      • Hero / Intro sections
      • Logo clouds
      • Mega menu
      • News
      • Newsletter
      • Pricing
      • Projects
      • Stats
      • Stats admin
      • Team
      • Testimonials
    • Tools
      • Button generator
      • Card generator
      • Flexbox generator
      • Footer generator
      • Form builder
      • Grid generator
      • Icon generator
      • Instagram Filters generator
      • Logo generator
      • Table generator
      • Typography generator
    • Coming Soon
      • Angular
      • Builder
      • Templates
      • Vue
    • Resources
      • Playground
      • YouTube Channel
      • Private FB Group
      • Newsletter
      • UI Design course New
      • UI / UX tips

    List group

    Tailwind CSS List Group

    Use responsive listgroup component with helper examples for active link, disabled link, links styling, nav links & more. Free download, open-source license.


    Basic example

    The list groups are very useful and flexible component for displaying lists of elements in a beautiful manner.

    The most basic list group is an unordered list with list items and the proper classes. Build upon it with the options that follow.

    • An item
    • A second item
    • A third item
    • A fourth item
    • And a fifth one
    • HTML
            
                
          <ul class="w-96 text-surface dark:text-white">
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              An item
            </li>
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              A second item
            </li>
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              A third item
            </li>
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              A fourth item
            </li>
            <li class="w-full py-4">And a fifth one</li>
          </ul>
          
            
        

    Hey there 👋 we're excited about TW elements and want to see it grow! If you enjoy it, help the project grow by sharing it with your peers. Every share counts, thank you!

    Active items

    Use code below to indicate the current active selection.

    • An active item
    • A second item
    • A third item
    • A fourth item
    • And a fifth one
    • HTML
            
                
          <ul class="w-96 text-surface dark:text-white">
            <li
              class="w-full rounded-lg bg-primary-100 p-4 text-primary-700 dark:bg-slate-900 dark:text-primary-500">
              An active item
            </li>
            <li class="w-full p-4">A second item</li>
            <li class="w-full p-4">A third item</li>
            <li class="w-full p-4">A fourth item</li>
            <li class="w-full p-4">And a fifth one</li>
          </ul>
          
            
        

    Disabled items

    The class .text-neutral-* and .cursor-default is used to disable a specific item in the list group.

    • A disabled item
    • A second item
    • A third item
    • A fourth item
    • And a fifth one
    • HTML
            
                
          <ul class="w-96 text-surface dark:text-white">
            <li
              class="w-full cursor-default border-b-2 border-neutral-100 py-4 text-surface/50 dark:border-white/10 dark:text-white/50">
              A disabled item
            </li>
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              A second item
            </li>
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              A third item
            </li>
            <li
              class="w-full border-b-2 border-neutral-100 py-4 dark:border-white/10">
              A fourth item
            </li>
            <li class="w-full py-4">And a fifth one</li>
          </ul>
          
            
        

    Links

    Use <a> or <button> to create actionable list group items with hover, disabled, and active states.

    The current link item A second link item A third link item A fourth link item A disabled link item
    • HTML
            
                
          <div class="w-96 text-surface dark:text-white">
            <a
              href="#!"
              aria-current="true"
              class="block w-full cursor-pointer rounded-lg bg-primary-100 p-4 text-primary-700 dark:bg-slate-900 dark:text-primary-500">
              The current link item
            </a>
            <a
              href="#!"
              class="block w-full cursor-pointer rounded-lg p-4 transition duration-500 hover:bg-zinc-50 hover:text-black focus:bg-zinc-50 focus:text-black focus:ring-0 active:bg-zinc-100 active:text-surface dark:hover:bg-neutral-700/60 dark:hover:text-white dark:focus:bg-neutral-700/60 dark:focus:text-white dark:active:bg-surface dark:active:text-white">
              A second link item
            </a>
            <a
              href="#!"
              class="block w-full cursor-pointer rounded-lg p-4 transition duration-500 hover:bg-zinc-50 hover:text-black focus:bg-zinc-50 focus:text-black focus:ring-0 active:bg-zinc-100 active:text-surface dark:hover:bg-neutral-700/60 dark:hover:text-white dark:focus:bg-neutral-700/60 dark:focus:text-white dark:active:bg-surface dark:active:text-white">
              A third link item
            </a>
            <a
              href="#!"
              class="block w-full cursor-pointer rounded-lg p-4 transition duration-500 hover:bg-zinc-50 hover:text-black focus:bg-zinc-50 focus:text-black focus:ring-0 active:bg-zinc-100 active:text-surface dark:hover:bg-neutral-700/60 dark:hover:text-white dark:focus:bg-neutral-700/60 dark:focus:text-white dark:active:bg-surface dark:active:text-white">
              A fourth link item
            </a>
            <a
              href="#!"
              class="pointer-events-none block w-full p-4 text-surface/50 focus:outline-none focus:ring-0 dark:text-white/50">
              A disabled link item
            </a>
          </div>
          
            
        

    Buttons

    Use <a> or <button> to create actionable list group items with hover, disabled, and active states.

    • HTML
            
                
          <div class="w-96 text-surface dark:text-white">
            <button
              aria-current="true"
              type="button"
              class="block w-full rounded-lg bg-primary-100 p-4 text-start text-primary-700 dark:bg-slate-900 dark:text-primary-500">
              The current button
            </button>
            <button
              type="button"
              class="block w-full rounded-lg p-4 text-start transition duration-500 hover:bg-zinc-50 hover:text-black focus:bg-zinc-50 focus:text-black focus:ring-0 active:bg-zinc-100 active:text-surface dark:hover:bg-neutral-700/60 dark:hover:text-white dark:focus:bg-neutral-700/60 dark:focus:text-white dark:active:bg-surface dark:active:text-white">
              A second button item
            </button>
            <button
              type="button"
              class="block w-full rounded-lg p-4 text-start transition duration-500 hover:bg-zinc-50 hover:text-black focus:bg-zinc-50 focus:text-black focus:ring-0 active:bg-zinc-100 active:text-surface dark:hover:bg-neutral-700/60 dark:hover:text-white dark:focus:bg-neutral-700/60 dark:focus:text-white dark:active:bg-surface dark:active:text-white">
              A third button item
            </button>
            <button
              type="button"
              class="block w-full rounded-lg p-4 text-start transition duration-500 hover:bg-zinc-50 hover:text-black focus:bg-zinc-50 focus:text-black focus:ring-0 active:bg-zinc-100 active:text-surface dark:hover:bg-neutral-700/60 dark:hover:text-white dark:focus:bg-neutral-700/60 dark:focus:text-white dark:active:bg-surface dark:active:text-white">
              A fourth button item
            </button>
            <button
              disabled=""
              type="button"
              class="pointer-events-none block w-full p-4 text-start text-surface/50 focus:outline-none focus:ring-0 dark:text-white/50">
              A disabled button item
            </button>
          </div>
          
            
        

    Related resources

    Tutorials:

    icons hover state focus active and others dark mode flexbox text spacing buttons rounded corners lists cards pricing cards advanced grid reorder columns sizing forms footer

    Extended Docs:

    colors dividers hover effects typography footer mega menu offcanvas scrollspy sidenav accordion cards chips collapse dropdown link paragraphs stepper timeline charts tables letter spacing paragraph spacing position spacing text color

    Generators and builders:

    Form drag & drop Typography SVG icon Instagram Filters button card table flexbox logo grid footer

    Design System (Figma):

    introduction de emphasize with no mercy size matters lowering contrast low contrast vs low aesthetics beyond borders let it breathe user experience do not start with the roof secondary questions design system plan the process principles tips and tricks
    • Basic example
    • Active items
    • Disabled items
    • Links
    • Buttons
    • Related resources
    Get useful tips & free resources directly to your inbox along with exclusive subscriber-only content.
    Join our mailing list now
    © 2024 Copyright: MDBootstrap.com

    Access restricted

    To view this section you must have an active PRO account

    Log in to your account or purchase an TWE subscription if you don't have one.

    Buy TWE PRO