Streamline the Laravel SaaS Starter Kit - Launch Your Next SaaS Today

Table

Present structured data in clean, responsive table layouts.

x-t-table

Preview and Examples

Tables

Tables...

Tag: x-t-table
Slots: thead tbody tfoot
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
Player Club Goals
1 Erling Haaland Manchester City 36
2 Harry Kane Tottenham Hotspur 30
3 Ivan Toney Brentford 20
1 2 3 4 5
<x-t-table
    variant="light"
    divide
    striped
>
    <x-slot:thead>
        <tr>
            <th>
                Player
            </th>
            <th>
                Club
            </th>
            <th>
                Goals
            </th>
        </tr>
    </x-slot:thead>
    <x-slot:tbody>
        <tr>
            <th class="whitespace-nowrap">
                <x-t-badge size="sm" class="mr-2 font-mono">1</x-t-badge> Erling Haaland
            </th>
            <td>
                Manchester City
            </td>
            <td class="font-mono">
                36
            </td>
        </tr>
        <tr>
            <th class="whitespace-nowrap">
                <x-t-badge size="sm" class="mr-2 font-mono">2</x-t-badge> Harry Kane
            </th>
            <td>
                Tottenham Hotspur
            </td>
            <td class="font-mono">
                30
            </td>
        </tr>
        <tr>
            <th class="whitespace-nowrap">
                <x-t-badge size="sm" class="mr-2 font-mono">3</x-t-badge> Ivan Toney
            </th>
            <td>
                Brentford
            </td>
            <td class="font-mono">
                20
            </td>
        </tr>
    </x-slot:tbody>
    <x-slot:tfoot>
        <tr>
            <td>
                <x-t-button variant="light" size="sm"><</x-t-button>
            </td>
            <td class="text-slate-400">
                <span class="text-slate-600 dark:text-slate-100">1</span> 2 3 4 5
            </td>
            <td>
                <x-t-button variant="light" size="sm">></x-t-button>
            </td>
        </tr>
    </x-slot:tfoot>
</x-t-table>

Attributes

Name Type Options Description
accent boolean
true false
Adds an accent
border boolean
true false
Adds a border
divide boolean
true false
Adds a divide between elements
hollow boolean
true false
Removes background colour
ring boolean
true false
Adds a ring
rounded boolean
true false
Adds rounded corners
shadow boolean
true false
Adds a shadow
size string
xs sm md lg xl 2xl
Controls component scale
striped boolean
true false
Alternates row backgrounds
variant string
default brand primary secondary success warning danger light dark
A variant is like a colour palette