--- title: "table" description: "Responsive data table wrapper." category: "Data Display" --- # table Responsive data table wrapper. ## Installation ```bash php artisan ui:add table ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` ## Usage ```blade Invoice Status INV-001 Paid ``` ## Example The demo rendered on the docs page. ```blade Invoice Status Amount INV-001 Paid $250.00 INV-002 Pending $150.00 ``` ## Source Copy this file to the path shown above it. `resources/views/components/ui/table.blade.php` ```blade @props([]) @php $classes = \TailwindMerge\Laravel\Facades\TailwindMerge::merge( 'w-full caption-bottom text-sm', $attributes->get('class'), ); @endphp
except('class')->merge(['class' => $classes]) }}> {{ $slot }}
``` ## Theme tokens `--muted`, `--muted-foreground`, `--border` Wrap standard thead/tbody/tr/th/td; styling via Tailwind utility selectors in your markup.