Files
karudhaas/resources/views/vendor/jetstream/components/action-message.blade.php
2020-09-16 05:01:27 +05:00

10 lines
387 B
PHP

@props(['on'])
<div x-data="{ shown: false, timeout: null }"
x-init="@this.on('{{ $on }}', () => { clearTimeout(timeout); shown = true; timeout = setTimeout(() => { shown = false }, 2000); })"
x-show.transition.opacity.out.duration.1500ms="shown"
style="display: none;"
{{ $attributes->merge(['class' => 'text-sm text-gray-600']) }}>
{{ $slot ?? 'Saved.' }}
</div>