The Custom validation example from the Field docs.
npx shadcn@latest add @hextaui/field-custom-validation
field-custom-validation