Skip to content
fabrials/ ui

Interaction

Arguments form

Turn a tool schema into a usable form, with a JSON escape hatch.

A name or keyword.

Installation

Terminal
bunx shadcn@latest add https://ui.fabrials.com/r/arguments-form.json

API

Prop / exportTypeDescription
schemaJsonSchemaSelf-contained JSON Schema 2020-12.
onSubmit(args) => Promise<unknown>Receives validated arguments.
initialValuesRecord<string, unknown>Initial input values.
submitLabelstringSubmit 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.