Interaction
Arguments form
Turn a tool schema into a usable form, with a JSON escape hatch.
Installation
Terminal
bunx shadcn@latest add https://ui.fabrials.com/r/arguments-form.jsonAPI
| Prop / export | Type | Description |
|---|---|---|
| schema | JsonSchema | Self-contained JSON Schema 2020-12. |
| onSubmit | (args) => Promise<unknown> | Receives validated arguments. |
| initialValues | Record<string, unknown> | Initial input values. |
| submitLabel | string | Submit action label. |
Behavior & compatibility
Simple scalar object schemas become fields. Composed, nested and array schemas use JSON editing. AJV validates both paths; unresolved external references fail explicitly.
Accessibility
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is fully keyboard operable.