Skip to main content

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 in pages/ are client-side by default:

Vite / CRA

Works without additional configuration.

Bundle size