
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-dynoform
Advanced tools
A flexible and extensible form-rendering React component powered by a JSON configuration. Built with TypeScript and Material UI, it supports nested fields, conditional rendering, and dynamic data loading.
⚙️ Built with React, TypeScript, and MUI (v5)
📦 Ideal for internal tools, admin panels, and dashboards
npm install react-dynoform
# or
yarn add react-dynoform
import React from 'react';
import DynamicForm, { FormField } from 'react-dynoform';
const formFields: FormField[] = [
{
key: 'name',
label: 'Name',
type: 'text',
required: true,
},
{
key: 'subscribe',
label: 'Subscribe to newsletter',
type: 'checkbox',
},
{
key: 'dob',
label: 'Date of Birth',
type: 'date',
},
{
key: 'gender',
label: 'Gender',
type: 'radio',
options: [
{ label: 'Male', value: 'male' },
{ label: 'Female', value: 'female' },
],
},
];
export default function App() {
return <DynamicForm fields={formFields} onSubmit={(data) => console.log('Submitted:', data)} />;
}
text, select, checkbox, radio, date, array, hiddentype: 'array') with collapsible sectionsdependsOn and showIfmapTo, mapFrom, doNotMap)interface FormField {
key: string;
label: string;
type?: 'text' | 'checkbox' | 'radio' | 'select' | 'hidden' | 'date' | 'array';
nestedFields?: FormField[];
options?:
| { label: string; value: string }[]
| ((formData: Record<string, any>) => { label: string; value: string }[]);
defaultValue?: any;
disabled?: boolean;
required?: boolean;
dependsOn?: string;
showIf?: string; // "*" for any value, or comma-separated values
mapTo?: string;
doNotMap?: boolean;
mapFrom?: string;
valueType?: 'string' | 'number' | 'boolean' | 'date' | 'json' | 'jsonString' | 'array';
}
| Prop | Type | Description |
|---|---|---|
fields | FormField[] | Configuration array |
disabled? | boolean | Disables all inputs |
selectedValues? | Record<string, any> | Pre-filled values |
submitButtonLabel? | string | Custom submit label |
hideSubmit? | boolean | Hide the submit button |
onChange? | (data: Record<string, any>) => void | Called on any change |
onSubmit? | (data: Record<string, any>) => void | Called on submit |
onRemove? | (data: Record<string, any>) => void | Called when delete is clicked |
text: Single-line text inputcheckbox: Boolean checkboxradio: Select one from multiple optionsselect: Dropdown with optionsdate: MUI-compatible date pickerhidden: Hidden input for internal valuesarray: Nested and repeatable field setsYou can make fields appear based on another field's value using:
dependsOn: key of the controlling fieldshowIf: comma-separated list of values to match (* = any value)Example:
{
key: "state",
label: "State",
type: "text",
dependsOn: "country",
showIf: "USA,Canada"
}
Clone locally:
git clone https://github.com/prashanth0926/react-dynoform.git
cd react-dynoform
npm install
Build for production:
npm run build
Run demo:
cd web
npm install
npm run dev
cd mobile
npm install
npm start
MIT © 2025 Prashanth Molakala
FAQs
JSON-based Dynamic Form Builder for React and React Native
The npm package react-dynoform receives a total of 0 weekly downloads. As such, react-dynoform popularity was classified as not popular.
We found that react-dynoform demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.