Core
@rjsf/core
A simple React component capable of building HTML forms out of a JSON schema.
Forms
react
form
json-schema
@rjsf/core
Forms
javascript
npm
frontend
open source
ui
Stars
338
Weekly
1.0M
Open issues
4
Bundle
~25 kB
Installation
npm install @rjsf/coreCode example
import { useCore } from "@rjsf/core";
export function Example() {
const form = useCore({ defaultValues: { email: "" } });
function onSubmit(event: React.FormEvent<HTMLFormElement>) {
event.preventDefault();
console.log(form);
}
return (
<form onSubmit={onSubmit}>
<input name="email" type="email" placeholder="you@example.com" />
<button type="submit">Submit</button>
</form>
);
}Pros & cons
Pros
- Actively maintained by Nicolas Perriault
- 1.0M weekly downloads. Battle tested
- First-class TypeScript definitions
- Apache-2.0 licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 4 open issues on GitHub