toby/resources/js/Shared/Feedbacks/EmptyState.vue
Kamil Niemczycki 4309e8104b
#150 - empty states (#160)
* #150 - added base for empty states

* #150 - added empty states to subpages

* #150 - added empty states for the widget: vacation requests

disabled "see more" button when no results are available

* Update resources/js/Pages/Holidays/Index.vue

Removed emoji from text

Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>

* #150 - added empty state for key page

* #150 - added empty state for user vacation request widget

* #31 - title corrected

Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>
2022-06-02 10:37:41 +02:00

22 lines
484 B
Vue

<template>
<div class="text-center my-5">
<slot name="head">
<SearchIcon class="mx-auto w-12 h-12" />
</slot>
<h3 class="mt-2 text-sm font-medium">
<slot name="title">
No search result
</slot>
</h3>
<p class="text-sm text-gray-500">
<slot name="text">
Try a different search query
</slot>
</p>
</div>
</template>
<script setup>
import { SearchIcon } from '@heroicons/vue/solid'
</script>