feat: initial commit

This commit is contained in:
Dominik Natter
2025-03-25 10:53:07 +01:00
commit e4305c407b
198 changed files with 22836 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
'use client'
import * as React from 'react'
import { useFormContext } from 'react-hook-form'
export const Error = ({ name }: { name: string }) => {
const {
formState: { errors },
} = useFormContext()
return (
<div className="mt-2 text-red-500 text-sm">
{(errors[name]?.message as string) || 'This field is required'}
</div>
)
}