Klasyczne tabele danych z transformacją mobilną - na telefonach
automatycznie zamieniają się w czytelne karty.
Tabele B2B (Mobile-First Data)
Użyj kontenera .table-wrapper dla poziomego scrolla
na desktopie. Dodanie klasy .table-cards sprawi, że
na telefonach tabela zamieni się w czytelne karty.
Tabela Kompaktowa (Zebra + Hover)
Faktura
Klient
Kwota
Status
#FV-2026/01
Jan Kowalski
12 500 PLN
Opłacona
#FV-2026/02
Anna Nowak
4 200 PLN
Oczekuje
Tabela Luźna (Ciemny, Kompaktowy Nagłówek)
Użytkownik
Rola
Ostatnie logowanie
Piotr Wiśniewski
Administrator
Dzisiaj, 08:45
Katarzyna Lis
Manager
Wczoraj, 16:20
Duży Nagłówek (thead-lg) + Karty Zawsze (table-cards-always)
Produkt
SKU
Stan magazynowy
Fotel biurowy PRO
FB-1042
32 szt.
Biurko regulowane
BR-2091
0 szt.
<!-- Duży nagłówek, karty ZAWSZE (nie tylko na mobile) -->
<table class="table thead-lg table-cards-always">
<thead class="thead-primary">
<tr><th>Produkt</th><th>SKU</th></tr>
</thead>
<tbody>
<tr>
<td data-label="Produkt">Fotel biurowy PRO</td>
<td data-label="SKU">FB-1042</td>
</tr>
</tbody>
</table>
<!-- Tabela Kompaktowa z Zebrą -->
<div class="table-wrapper">
<table class="table table-sm table-striped table-hover table-cards">
<thead>
<tr>
<th>Faktura</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<!-- Atrybut data-label jest kluczowy dla widoku mobilnego! -->
<td data-label="Faktura">#FV-2026/01</td>
<td data-label="Status"><span class="badge badge-success">Opłacona</span></td>
</tr>
</tbody>
</table>
</div>
<!-- Tabela z Ciemnym, Kompaktowym Nagłówkiem -->
<div class="table-wrapper">
<table class="table table-lg table-borderless">
<!-- Dodaj klasy do thead -->
<thead class="thead-dark thead-sm">
<tr>
<th>Użytkownik</th>
<th>Rola</th>
</tr>
</thead>
<tbody>
<!-- ... -->
</tbody>
</table>
</div>