<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'id',
    'align' => 'end',
    'width' => 'w-80',
    'triggerClass' => '',
    'panelClass' => '',
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'id',
    'align' => 'end',
    'width' => 'w-80',
    'triggerClass' => '',
    'panelClass' => '',
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php
    $alignmentClass = $align === 'start'
        ? 'left-0 origin-top-left'
        : 'right-0 origin-top-right';
?>

<div class="relative" data-booklio-dropdown-root>
    <button
        type="button"
        aria-haspopup="menu"
        aria-expanded="false"
        aria-controls="<?php echo e($id); ?>"
        data-booklio-dropdown-trigger="<?php echo e($id); ?>"
        <?php echo e($attributes->merge(['class' => $triggerClass])); ?>

    >
        <?php echo e($trigger); ?>

    </button>

    <div
        id="<?php echo e($id); ?>"
        role="menu"
        data-booklio-dropdown-menu="<?php echo e($id); ?>"
        data-align="<?php echo e($align); ?>"
        class="booklio-dropdown-panel pointer-events-none invisible absolute <?php echo e($alignmentClass); ?> top-full z-50 mt-2 <?php echo e($width); ?> max-w-[calc(100vw-2rem)] translate-y-1 overflow-hidden rounded-lg border border-booklio-border bg-white text-left opacity-0 shadow-modal transition duration-150 ease-out <?php echo e($panelClass); ?>"
    >
        <?php echo e($slot); ?>

    </div>
</div>
<?php /**PATH C:\Users\Dcodax\Documents\Booklio\resources\views/components/ui/dropdown.blade.php ENDPATH**/ ?>