nazim-forms
Installation
SKILL.md
Nazim Forms
All forms use React Hook Form with Zod validation. Schemas live in /src/lib/validations/ and must align with backend Laravel Form Request rules.
Schema Location and Structure
- Path:
frontend/src/lib/validations/yourResource.ts - Export: schema + type via
z.infer<typeof schema> - Shared: Use one schema per resource; do not duplicate across components
import { z } from 'zod';
import { optionalUuidSchema, requiredStringLength, optionalStringLength } from './common';
export const yourResourceSchema = z.object({
name: requiredStringLength(255, 'Name'),
description: optionalStringLength(1000, 'Description'),
organization_id: optionalUuidSchema,
});