Files
Virtnet.bond/extensions/Servers/Proxmox/views/components/ui/table-td.blade.php
Joseph.Rawlings 7190d7a818 refactor: update UI components to shadcn-style
- Refactored select component to align with shadcn design principles.
- Updated server status indicator component for consistency with shadcn style.
- Modified spinner component to follow shadcn design guidelines.
- Enhanced stat card component with shadcn-inspired styles.
- Adjusted tab panel component to reflect shadcn design updates.
- Revamped table row and table data cell components to match shadcn aesthetics.
- Updated table header cell component for improved styling consistency.
- Refined table component to align with shadcn design principles.
- Enhanced tabs component with shadcn-inspired styles.
- Updated toggle component to follow shadcn design guidelines.
- Refactored tooltip component to align with shadcn design principles.
- Updated server card component to reflect shadcn-inspired design.
2025-12-17 11:47:42 -05:00

32 lines
670 B
PHP

{{--
Table Data Cell Component - shadcn-style
--}}
@props([
'align' => 'start',
'nowrap' => false,
'muted' => false,
'strong' => false,
])
@php
$alignClasses = [
'start' => 'text-left',
'center' => 'text-center',
'end' => 'text-right',
];
$alignClass = $alignClasses[$align] ?? $alignClasses['start'];
@endphp
<td
{{ $attributes->class([
'p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
$alignClass,
'whitespace-nowrap' => $nowrap,
'text-muted-foreground' => $muted,
'font-medium' => $strong,
]) }}
>
{{ $slot }}
</td>