What problem does it solve?
This Skill provides a structured, best-practice guideline to simplify and standardize the creation of publish-form UIs, reducing boilerplate and ensuring consistency across ad campaigns.
Core Features & Use Cases
- Component structure guidelines: forms should be placed in app/(private)/publish-ad/_components/{category}/{FormName}/ with files named {FormName}.tsx and {FormName}.styles.ts, using PascalCase form names and a top-level "use client" directive.
- Validation and state management: integrate with the conform-to/react library for real-time validation, backed by a Zod schema, and manage form state with useActionState and server actions.
- Data handling and UI behavior: support dependent dropdowns, image/file uploads via DropFilesInput, and server interactions to create or update ads.
Quick Start
Follow the Quick Start instructions to implement a CarPublishForm using the guidelines and wire it to a publishCarAd server action.