@props([ 'id' => generateId(6), 'pos' => 'end', 'title' => '', 'btnText' => 'Open Offcanvas', 'minWidth' => null, 'maxWidth' => null, 'width' => null, 'minHeight' => null, 'maxHeight' => null, 'height' => null, 'headerBg' => 'white', 'headerColor' => 'dark', ]) @php($btnAttributes = ['data-bs-toggle' => 'offcanvas', 'aria-controls' => $id, 'data-bs-target' => '#'.$id, 'role' => 'button']) @isset($button) @endisset
$minWidth, 'max-width: ' . toPixels($maxWidth) => $maxWidth, 'width: ' . toPixels($width) => $width, 'min-height: '. toPixels($minHeight) => $minHeight, 'max-height: ' . toPixels($maxHeight) => $maxHeight, 'height: ' . toPixels($height) => $height, ])>
@isset($header) @else @if($title)
{{ __($title) }}
@endif @endisset
{{ $slot }}