Files
supabase/blocks/vue/registry/default/components/ui/Input.vue
Jakub Andrzejewski 3485cd4965 Docs/UI library vue nuxt password auth (#39405)
* docs: ui library password auth vue

* docs: ui library password auth nuxt

* Fix a pnpm-lock conflict.

* Adjust paths

* Fix import path

* Rebuild

* docs: remove shadcn-vue package

* Fix the pnpm-lock.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2025-11-10 08:27:38 -03:30

26 lines
729 B
Vue

<script setup lang="ts">
import { cn } from "../../lib/utils"
defineProps<{
type?: string
class?: string
}>()
const props = defineProps({
type: { type: String, default: "text" },
class: { type: String, default: "" },
})
</script>
<template>
<input
:type="props.type"
:class="
cn(
'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
props.class
)
"
/>
</template>