View as Markdown

API reference: @salmonui/inputs/form-renderer

FormSchemainterface

import type { FormSchema } from '@salmonui/inputs/form-renderer';
interface FormSchema {
    readonly type: 'object';
    readonly title?: string | undefined;
    readonly description?: string | undefined;
    readonly properties: Readonly<Record<string, FormSchemaProperty>>;
    readonly required?: readonly string[] | undefined;
}

The JSON Schema subset FormRenderer renders: an object of scalar properties.

FormSchema members (5)
NameSignatureDescription
typereadonly type: 'object';
titleoptionalreadonly title?: string | undefined;

The form's accessible name when no aria-label / aria-labelledby is given.

descriptionoptionalreadonly description?: string | undefined;
propertiesreadonly properties: Readonly<Record<string, FormSchemaProperty>>;
requiredoptionalreadonly required?: readonly string[] | undefined;