PHP Classes

File: resources/views/vendor/jetstream/components/action-message.blade.php

Recommend this page to a friend!
  Classes of Julio Vergara   PHP URL Shortener API   resources/views/vendor/jetstream/components/action-message.blade.php   Download  
File: resources/views/vendor/jetstream/components/action-message.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP URL Shortener API
Provides an API to create and expand short URLs
Author: By
Last change:
Date: 2 years ago
Size: 452 bytes
 

Contents

Class file image Download
@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.out.opacity.duration.1500ms="shown"
    x-transition:leave.opacity.duration.1500ms
    style="display: none;"
    {{ $attributes->merge(['class' => 'text-sm text-gray-600']) }}>
    {{ $slot->isEmpty() ? 'Saved.' : $slot }}
</div>