mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 16:22:16 +01:00
* add linter, prettier and typescript support for jetstream * add github actions for lint, build and typecheck * add composer install to build action * fix composer lock * add ext-intl and fixed php version * fix intl php extension install * add tip php extension to github npm build action * fix php version to 8.3.1 * change github php base action * fix primary button default type * updated typescript types from Team to Organization --------- Co-authored-by: Gregor Vostrak <gregorvostrak@Gregors-MacBook-Pro.local>
22 lines
970 B
Vue
22 lines
970 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { Link } from '@inertiajs/vue3';
|
|
|
|
const props = defineProps<{
|
|
href?: string;
|
|
active?: boolean;
|
|
}>();
|
|
|
|
const classes = computed(() => {
|
|
return props.active
|
|
? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 dark:border-indigo-600 text-sm font-medium leading-5 text-gray-900 dark:text-gray-100 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out'
|
|
: 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-700 focus:outline-none focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 dark:focus:border-gray-700 transition duration-150 ease-in-out';
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<Link :href="href ?? ''" :class="classes">
|
|
<slot />
|
|
</Link>
|
|
</template>
|