mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
* 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>
29 lines
633 B
Vue
29 lines
633 B
Vue
<script setup lang="ts">
|
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
import { cn } from "../../lib/utils"
|
|
|
|
const labelVariants = cva(
|
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
)
|
|
|
|
type LabelVariants = VariantProps<typeof labelVariants>
|
|
|
|
defineProps<{
|
|
as?: string
|
|
class?: string
|
|
}>()
|
|
|
|
const props = defineProps({
|
|
as: { type: String, default: "label" },
|
|
class: { type: String, default: "" },
|
|
})
|
|
|
|
const labelClass = cn(labelVariants(), props.class)
|
|
</script>
|
|
|
|
<template>
|
|
<component :is="as" :class="labelClass">
|
|
<slot />
|
|
</component>
|
|
</template>
|