Skip to main content

@whynotsnow/dynamic-form

DynamicForm

A dynamic form library built with React, TypeScript, and Ant Design. Describe form structure with config, handle field dependencies with effect chains, and centralize runtime participation policy in the Runtime Layer.

DynamicForm configuration, runtime, and rendering workflow
npm install @whynotsnow/dynamic-form antd react react-dom

Config-driven Forms

Describe fields, groups, validation, and UI config with FormConfig, keeping Ant Design Form usage behind a stable configuration layer.

Effects and Runtime Policy

Execute dependency chains through form-chain-effect-engine and resolve rendering, submit, disabled, readonly, and validation capabilities through the Runtime Layer.

Extension Points

Supports custom components, effect result handlers, render hooks, compiler, adapters, and a declarative rule layer.

Core Workflow

DynamicForm separates input normalization, runtime capabilities, and UI rendering into clear layers for reuse, extension, and verification.

01

Adapter / Compiler

Normalize external schemas, metadata, or field modules into standard FormConfig.

02

State / Runtime

Store structure and meta, then resolve rendered, editable, validatable, and related capabilities in one place.

03

Consumer / Effects

Render Ant Design Form and route field effect results through semantic handlers.