2024-06-16 03:31:21 +02:00
|
|
|
<template>
|
2024-07-22 01:23:29 +02:00
|
|
|
<input :class="['block disabled:opacity-70 disabled:hover:cursor-wait w-full bg-dark-500 rounded-md border-0 py-1.5 text-gray-50 shadow-sm ring-1 ring-inset ring-white/10 placeholder:text-gray-500 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6',
|
2024-06-16 03:31:21 +02:00
|
|
|
isInvalid && '!ring-red-600 ring-2']">
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import type { InputHTMLAttributes } from "vue";
|
|
|
|
|
|
|
|
|
|
interface Props extends /* @vue-ignore */ InputHTMLAttributes {
|
|
|
|
|
isInvalid?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defineProps<Props>();
|
|
|
|
|
</script>
|