Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Data Display

table

Responsive data table wrapper.

Invoice Status Amount
INV-001 Paid $250.00
INV-002 Pending $150.00

Installation

php artisan ui:add table

Usage

<x-ui.table>
    <thead>
        <tr class="border-b text-left">
            <th class="h-10 px-2 font-medium text-muted-foreground">Invoice</th>
            <th class="h-10 px-2 font-medium text-muted-foreground">Status</th>
        </tr>
    </thead>
    <tbody>
        <tr class="border-b">
            <td class="p-2 font-medium">INV-001</td>
            <td class="p-2">Paid</td>
        </tr>
    </tbody>
</x-ui.table>

Wrap standard thead/tbody/tr/th/td; styling via Tailwind utility selectors in your markup.

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([])