@aware(['isTailwind', 'isBootstrap'])
@props(['direction' => 'none', 'customIconAttributes'])
$isTailwind,
'relative d-flex align-items-center' => $isBootstrap
])
>
@if($isTailwind)
@switch($direction)
@case('asc')
merge($customIconAttributes)
->class([
'w-3 h-3' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
'absolute opacity-100 group-hover:opacity-0',
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
merge($customIconAttributes)
->class([
'w-3 h-3' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
'absolute opacity-0 group-hover:opacity-100',
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
@break
@case('desc')
merge($customIconAttributes)
->class([
'w-3 h-3' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
'absolute opacity-100 group-hover:opacity-0',
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
merge($customIconAttributes)
->class([
'w-3 h-3' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
'absolute opacity-0 group-hover:opacity-100',
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
@break
@default
merge($customIconAttributes)
->class([
'w-3 h-3' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
'absolute opacity-100 group-hover:opacity-0',
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
merge($customIconAttributes)
->class([
'w-3 h-3' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
'absolute opacity-0 group-hover:opacity-100',
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
@endswitch
@else
@switch($direction)
@case('asc')
merge($customIconAttributes)
->class([
'laravel-livewire-tables-btn-smaller ms-1' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
@break
@case('desc')
merge($customIconAttributes)
->class([
'laravel-livewire-tables-btn-smaller ms-1' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
@break
@default
merge($customIconAttributes)
->class([
'laravel-livewire-tables-btn-smaller ms-1' => $customIconAttributes['default-styling'] ?? ($customIconAttributes['default'] ?? true),
])
->except(['default', 'default-colors', 'default-styling', 'wire:key']) }} />
@endswitch
@endif