@props(['as' => 'div']) @if (substr($as, 0, 2) == 'x-') @else <{{ $as }} data-tw-toggle="dropdown" aria-expanded="false" {{ $attributes->class(['cursor-pointer'])->merge($attributes->whereDoesntStartWith('class')->getAttributes()) }} >{{ $slot }} @endif