Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Last active October 17, 2025 00:37
Show Gist options
  • Save NandoKstroNet/3b54e5ff95a476831684a0edc7ccd162 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/3b54e5ff95a476831684a0edc7ccd162 to your computer and use it in GitHub Desktop.
Componente Paginator Vue JS Laravel Starter Kit Inertia
<script setup>
import NavLink from '@/components/TextLink.vue';
defineProps({
meta: Object,
});
</script>
<template>
<div id="pagination" class="flex justify-end py-2 pr-10">
<NavLink
v-for="link in meta.links"
:href="link.url ? link.url : '#'"
v-show="link.url"
:key="link.label"
class="ml-4 rounded border-gray-300 !px-4 !py-2 transition duration-300 ease-in-out hover:border-gray-600 hover:bg-gray-900 hover:text-white"
:class="{
'border-xl border border-gray-600 bg-black text-white':
link.active,
}"
v-html="link.label"
></NavLink>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment