@petrarca/sonnet-forms
v0.1.4
Published
Schema-driven form renderer, field components, and widgets for the Petrarca Sonnet component library
Downloads
571
Readme
@petrarca/sonnet-forms
Schema-driven form renderer and field components for the Petrarca Sonnet component library.
What's included
JsonSchemaFormRenderer -- Renders a complete form from a JSON Schema definition with automatic widget resolution, validation, nested objects, and repeatable arrays.
Field components -- Standalone form fields with label, description, error, and compact mode support: FormInput, FormTextarea, FormSelect, FormMultiSelect, FormCheckbox, FormTagsInput, FormQuantityInput.
Widget system -- Extensible widget registry for mapping schema types to UI controls. Built-in widgets for text, number, select, checkbox, textarea, tags, quantity, arrays, objects, entity references, and JSON editing.
Install
pnpm add @petrarca/sonnet-forms @petrarca/sonnet-ui @petrarca/sonnet-corePeer dependencies: react, react-dom, tailwindcss.
License
Apache 2.0
