Requirements
- React 18 or later
Install
TypeScript
Types are bundled — no separate@types package needed.
All types from @osforms/types are re-exported from @osforms/react:
Next.js (App Router)
Works out of the box. Add'use client' when using in a Server Component file:
Next.js (Pages Router)
No special configuration needed — all files inpages/ are client-side by default: