List Group.
Make use of Datatabls's unique Datatabls styles to enhance actions in forms, dialogs, and various other elements, featuring comprehensive support.
List GroupList Group
Basic List Group
- An item
- A second item
- A third item
- A fourth item
- A fifth item
<ul class="list-group">
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">An item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A second item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A third item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A fourth item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A fifth item</li>
</ul>
List Active items
- An active item
- A second item
- A third item
- A fourth item
- A fifth item
<ul class="list-group">
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 bg-primary! text-white!">An active item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A second item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A third item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A fourth item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A fifth item</li>
</ul>
List Disabled items
- A disabled item
- A second item
- A third item
- A fourth item
- And a fifth one
<ul class="list-group">
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 pointer-events-none opacity-70">A disabled item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A second item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A third item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A fourth item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">And a fifth one</li>
</ul>
Links and buttons items
<div class="list-group">
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 bg-primary! text-white!">The current link item</a>
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A second link item</a>
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A third link item</a>
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">A fourth link item</a>
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 pointer-events-none opacity-70">A fifth link item</a>
</div>
Flush
- An item
- A second item
- A third item
- A fourth item
- A fifth item
<ul class="divide-y divide-bordercolor">
<li class="block py-3 px-6 hover:bg-primary/5">An item</li>
<li class="block py-3 px-6 hover:bg-primary/5">A second item</li>
<li class="block py-3 px-6 hover:bg-primary/5">A third item</li>
<li class="block py-3 px-6 hover:bg-primary/5">A fourth item</li>
<li class="block py-3 px-6 hover:bg-primary/5">A fifth item</li>
</ul>
With badges
- An item 14
- A second item 2
- A third item 14
- A fourth item 1
- A fifth item 1
<ul class="list-group">
<li class="py-4 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 flex justify-between items-center">
An item <span class="badge bg-primary text-white">14</span>
</li>
<li class="py-4 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 flex justify-between items-center">
A second item <span class="badge bg-primary text-white">2</span>
</li>
<li class="py-4 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 flex justify-between items-center">
A third item <span class="badge bg-primary text-white">14</span>
</li>
<li class="py-4 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 flex justify-between items-center">
A fourth item <span class="badge bg-primary text-white">1</span>
</li>
<li class="py-4 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 flex justify-between items-center">
A fifth item <span class="badge bg-primary text-white">1</span>
</li>
</ul>
Custom content
List group item heading
3 days agoDonec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta.List group item heading
3 days agoDonec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta.List group item heading
3 days agoDonec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta.
<div class="list-group">
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 bg-primary! text-white!">
<div class="flex w-full justify-between">
<h5 class="mb-4 text-white">List group item heading</h5>
<small>3 days ago</small>
</div>
<p class="mb-1 text-white text-2xs">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small>Donec id elit non mi porta.</small>
</a>
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">
<div class="flex w-full justify-between">
<h5 class="mb-4">List group item heading</h5>
<small>3 days ago</small>
</div>
<p class="mb-1 text-2xs">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small>Donec id elit non mi porta.</small>
</a>
<a href="javascript:void(0);" class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">
<div class="flex w-full justify-between">
<h5 class="mb-4">List group item heading</h5>
<small>3 days ago</small>
</div>
<p class="mb-1 text-2xs">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small>Donec id elit non mi porta.</small>
</a>
</div>
Contextual
- Dapibus ac facilisis in
- This is a primary list group item
- This is a secondary list group item
- This is a success list group item
- This is a danger list group item
- This is a warning list group item
- This is a info list group item
- This is a light list group item
- This is a dark list group item
<ul class="list-group">
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">Dapibus ac facilisis in</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5 text-primary">This is a primary list group item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-secondary/10 text-secondary">This is a secondary list group item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-success/10 text-success">This is a success list group item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-danger/10 text-danger">This is a danger list group item
</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-warning/10 text-warning">This is a warning list group item</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-info/10 text-info">This is a info list group item
</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">This is a light list group item
</li>
<li class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5">This is a dark list group item
</li>
</ul>
List Tab
<div class="row" x-data="{ tab: 'list-home' }">
<div class="lg:w-1/2 xl:w-1/4 w-full">
<div class="list-group mb-4" id="list-tab1" role="tablist">
<a class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5"
@click.prevent="tab = 'list-home'"
:class="{ ' text-white! bg-primary!': tab == 'list-home'}">Home</a>
<a class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5"
@click.prevent="tab = 'list-profile'"
:class="{ ' text-white! bg-primary!': tab == 'list-profile'}">Profile</a>
<a class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5"
@click.prevent="tab = 'list-messages'"
:class="{ ' text-white! bg-primary!': tab == 'list-messages'}">Messages</a>
<a class="block py-3 px-6 border border-bordercolor -mt-px first:rounded-t-xl last:rounded-b-lg first:mt-0 hover:bg-primary/5"
@click.prevent="tab = 'list-settings'"
:class="{ ' text-white! bg-primary!': tab == 'list-settings'}">Settings</a>
</div>
</div>
<div class="lg:w-1/2 xl:w-3/4 w-full">
<div class="tab-content" id="nav-tabContent">
<div x-show="tab == 'list-home'"
x-transition:enter="transition-all duration-500 easy-in-out"
x-transition:enter-start="opacity-0 [transform:translate3d(0,1rem,0)]"
x-transition:enter-end="opacity-100 [transform:translate3d(0,0,0)]">
<h4 class="mb-6">Home Tab Content</h4>
<p class="mb-4">Velit aute mollit ipsum ad dolor consectetur nulla officia culpa adipisicing exercitation fugiat tempor. Voluptate deserunt sit sunt nisi aliqua fugiat proident ea ut. Mollit voluptate reprehenderit
occaecat nisi ad non minim tempor sunt voluptate consectetur exercitation id ut nulla. Ea et fugiat aliquip nostrud sunt incididunt consectetur culpa aliquip eiusmod dolor. Anim ad Lorem aliqua in
cupidatat nisi enim eu nostrud do aliquip veniam minim.</p>
</div>
<div x-show="tab == 'list-profile'" role="tabpanel'"
x-transition:enter="transition-all duration-500 easy-in-out"
x-transition:enter-start="opacity-0 [transform:translate3d(0,1rem,0)]"
x-transition:enter-end="opacity-100 [transform:translate3d(0,0,0)]">
<h4 class="mb-6">Profile Tab Content</h4>
<p class="mb-4">Cupidatat quis ad sint excepteur laborum in esse qui. Et excepteur consectetur ex nisi eu do cillum ad laborum. Mollit et eu officia dolore sunt Lorem culpa qui commodo velit ex amet id ex. Officia anim
incididunt laboris deserunt anim aute dolor incididunt veniam aute dolore do exercitation. Dolor nisi culpa ex ad irure in elit eu dolore. Ad laboris ipsum reprehenderit irure non commodo enim culpa
commodo veniam incididunt veniam ad.</p>
</div>
<div x-show="tab == 'list-messages'"
x-transition:enter="transition-all duration-500 easy-in-out"
x-transition:enter-start="opacity-0 [transform:translate3d(0,1rem,0)]"
x-transition:enter-end="opacity-100 [transform:translate3d(0,0,0)]">
<h4 class="mb-6">Message Tab Content</h4>
<p class="mb-4">Ut ut do pariatur aliquip aliqua aliquip exercitation do nostrud commodo reprehenderit aute ipsum voluptate. Irure Lorem et laboris nostrud amet cupidatat cupidatat anim do ut velit mollit consequat
enim tempor. Consectetur est minim nostrud nostrud consectetur irure labore voluptate irure. Ipsum id Lorem sit sint voluptate est pariatur eu ad cupidatat et deserunt culpa sit eiusmod deserunt.
Consectetur et fugiat anim do eiusmod aliquip nulla laborum elit adipisicing pariatur cillum.</p>
</div>
<div x-show="tab == 'list-settings'"
x-transition:enter="transition-all duration-500 easy-in-out"
x-transition:enter-start="opacity-0 [transform:translate3d(0,1rem,0)]"
x-transition:enter-end="opacity-100 [transform:translate3d(0,0,0)]">
<h4 class="mb-6">Settings Tab Content</h4>
<p class="mb-4">Irure enim occaecat labore sit qui aliquip reprehenderit amet velit. Deserunt ullamco ex elit nostrud ut dolore nisi officia magna sit occaecat laboris sunt dolor. Nisi eu minim cillum occaecat aute
est cupidatat aliqua labore aute occaecat ea aliquip sunt amet. Aute mollit dolor ut exercitation irure commodo non amet consectetur quis amet culpa. Quis ullamco nisi amet qui aute irure eu. Magna
labore dolor quis ex labore id nostrud deserunt dolor eiusmod eu pariatur culpa mollit in irure.</p>
</div>
</div>
</div>
</div>