Installation
Install FieldCraft in your React project.
Requirements
- Node.js 20 or later
- React 18 or 19
- Tailwind CSS v4 (for the React renderer styles)
Install Packages
FieldCraft is split into two packages: a headless core engine and a React renderer. Install both:
Or with pnpm / yarn:
Import Styles
The React package ships a pre-built CSS file with all 36 component styles. Import it once in your app entry point:
Using Tailwind CSS v4
If your project already uses Tailwind CSS v4, you can scan the FieldCraft component sources directly instead of importing the pre-built stylesheet. This produces a single unified CSS build with no duplicate base resets.
Peer Dependencies
The React package requires react and react-dom as peer dependencies:
| Package | Version |
|---|---|
react | ^18 || ^19 |
react-dom | ^18 || ^19 |
Storage Adapters (Optional)
If you want to persist form responses to a database or external service, install one of the storage adapters. All three are free and open source (MIT).
TypeScript
All packages ship with full type declarations (.d.ts). No additional @types/ packages needed.
Next Steps
Head to the Quick Start guide to render your first form.